File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/scala/scalatutorial/sections Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ object TypeClasses extends ScalaTutorialSection {
52
52
*
53
53
* {{{
54
54
* def insertionSort[T](xs: List[T])(lessThan: (T, T) => Boolean) = {
55
- * def insert(y: Int , ys: List[Int ]): List[Int ] =
55
+ * def insert(y: T , ys: List[T ]): List[T ] =
56
56
* ys match {
57
57
* …
58
58
* case z :: zs =>
@@ -99,7 +99,7 @@ object TypeClasses extends ScalaTutorialSection {
99
99
*
100
100
* {{{
101
101
* def insertionSort[T](xs: List[T])(ord: Ordering[T]): List[T] = {
102
- * def insert(y: Int , ys: List[Int ]): List[Int ] =
102
+ * def insert(y: T , ys: List[T ]): List[T ] =
103
103
* … if (ord.lt(y, z)) …
104
104
*
105
105
* … insert(y, insertionSort(ys)(ord)) …
@@ -127,7 +127,7 @@ object TypeClasses extends ScalaTutorialSection {
127
127
*
128
128
* {{{
129
129
* def insertionSort[T](xs: List[T])(implicit ord: Ordering[T]): List[T] = {
130
- * def insert(y: Int , ys: List[Int ]): List[Int ] =
130
+ * def insert(y: T , ys: List[T ]): List[T ] =
131
131
* … if (ord.lt(y, z)) …
132
132
*
133
133
* … insert(y, insertionSort(ys)) …
You can’t perform that action at this time.
0 commit comments