Skip to content

Commit 54948ac

Browse files
committed
making comment 'clearer' and fudging code width standard for sake of clarity
1 parent 469e067 commit 54948ac

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎koans/src/beginner/AboutVarArgs.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public String verboseLength(String prefix, Object... arguments) {
2121
}
2222

2323
// *******
24-
// The following methods won't compile because Java doesn't allow this type of method declaration
25-
// *******
24+
// The following methods won't compile because Java only permits varargs as last argument
25+
// *******
2626
// public String invalidMethodDeclaration(String... arguments, String... otherArguments) { return ""; }
2727
// public String otherInvalidMethodDeclaration(String... arguments, String otherArgument) { return ""; }
2828
}
@@ -45,7 +45,6 @@ public void youCanPassInZeroArgumentsIfYouLike() {
4545

4646
@Koan
4747
public void youCanHaveOtherTypesInTheMethodSignature() {
48-
assertEquals(new ExampleClass().verboseLength("This is how many items were passed in: ", 1, 2, 3, 4),
49-
__);
48+
assertEquals(new ExampleClass().verboseLength("This is how many items were passed in: ", 1, 2, 3, 4), __);
5049
}
5150
}

0 commit comments

Comments
 (0)