Skip to content

Commit 8b0d3de

Browse files
committed
KEEP-0439-named-only-parameters Fix typo
1 parent 83bcfe8 commit 8b0d3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/KEEP-0439-named-only-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fun reformat(
6262
When it is called without argument names, for example `reformat(myStr, true, false, true, ' ')`, it's difficult to say for the reader what the meaning of its arguments is.
6363

6464
That's why developers always try to remember to specify the argument names in such cases.
65-
[Kotlin coding conventions](https://kotlinlang.org/docs/coding-conventions.html#named-arguments) also recommend to use named arguments named argument syntax when a method takes multiple parameters of the same primitive type, or for parameters of `Boolean` type.
65+
[Kotlin coding conventions](https://kotlinlang.org/docs/coding-conventions.html#named-arguments) also recommend to use named arguments syntax when a method takes multiple parameters of the same primitive type, or for parameters of `Boolean` type.
6666

6767
In Java, it's also a common practice to specify argument names in the comments, e.g. `reformat(myStr, /* normalizeCase = */ true)`.
6868
This is a clear sign that argument names can sometimes play a critical role in code readability.

0 commit comments

Comments
 (0)