@@ -49,7 +49,7 @@ object NamedandDefaultArguments
4949 * printName(last = "Jones") // Prints "John Jones"
5050 * }}}
5151 *
52- * Given classes below:
52+ * Given the classes below:
5353 *
5454 * {{{
5555 * class WithoutClassParameters() = {
@@ -84,19 +84,18 @@ object NamedandDefaultArguments
8484 *
8585 * }}}
8686 *
87- * Can specify arguments in any order if you use their names:
87+ * You can specify arguments in any order if you use their names:
8888 */
8989 def classWithoutParametersNamedandDefaultArguments (res0 : Int , res1 : Int , res2 : Int ) = {
9090 val me = new WithoutClassParameters ()
9191
92- // what happens if you change the order of these parameters (nothing)
92+ // What happens if you change the order of these parameters? Nothing.
9393 val myColor = me.addColors(green = 0 , red = 255 , blue = 0 )
9494
95- // for koan, remove the values in the should equal
9695 myColor should equal((res0, res1, res2))
9796 }
9897
99- /** Can default arguments if you leave them off:
98+ /** You can default arguments if you leave them off:
10099 */
101100 def defaultArgumentsNamedandDefaultArguments (res0 : Int , res1 : Int , res2 : Int ) = {
102101 val me = new WithoutClassParameters ()
@@ -105,7 +104,7 @@ object NamedandDefaultArguments
105104 myColor should equal((res0, res1, res2))
106105 }
107106
108- /** Can access class parameters and specify arguments in any order if you use their names:
107+ /** You can access class parameters and specify arguments in any order if you use their names:
109108 */
110109 def anyOrderNamedandDefaultArguments (res0 : Int , res1 : Int , res2 : Int ) = {
111110 val me = new WithClassParameters (40 , 50 , 60 )
@@ -114,7 +113,7 @@ object NamedandDefaultArguments
114113 myColor should equal((res0, res1, res2))
115114 }
116115
117- /** Can access class parameters and default arguments if you leave them off:
116+ /** You can access class parameters and default arguments if you leave them off:
118117 */
119118 def accessClassParametersNamedandDefaultArguments (res0 : Int , res1 : Int , res2 : Int ) = {
120119 val me = new WithClassParameters (10 , 20 , 30 )
@@ -123,7 +122,7 @@ object NamedandDefaultArguments
123122 myColor should equal((res0, res1, res2))
124123 }
125124
126- /** Can default class parameters and have default arguments too:
125+ /** You can default class parameters and have default arguments too:
127126 */
128127 def defaultClassArgumentsNamedandDefaultArguments (res0 : Int , res1 : Int , res2 : Int ) = {
129128 val me = new WithClassParametersInClassDefinition ()
0 commit comments