Small correction to an example in the Scala spec


#1

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.


#2

Yup, that’s a typo @Araeos. Do you mind sending a PR to scala/scala fixing it? :smile:


#3

I’ve created a PR for this https://github.com/scala/scala/pull/6161 which was already merged.
Good catch @Areaeos !


#4

Thank you, I should probably just open a pull request directly for something this minor next time.


#5

Yeah guys, thanks for your interest. Generally, any PR that improves docs and fixes errors is very much welcome! :sunny: