I belive to have found a typo in an example in the Scala spec. More specifically, referring to the document on github (07-implicits.md), the call (line 158)
sort(yss)(xs: List[Int] => list2ordered[Int](xs)(int2ordered))
should probably read
sort(yss)((xs: List[Int]) => list2ordered[Int](xs)(int2ordered))
because the single parameter has the type specified.
Yup, that’s a typo @Araeos. Do you mind sending a PR to scala/scala fixing it?
I’ve created a PR for this https://github.com/scala/scala/pull/6161 which was already merged.
Good catch @Areaeos !
1 Like
Thank you, I should probably just open a pull request directly for something this minor next time.
Yeah guys, thanks for your interest. Generally, any PR that improves docs and fixes errors is very much welcome!