diff --git a/README.md b/README.md index 1a95b3ec8..411fda25b 100644 --- a/README.md +++ b/README.md @@ -1507,6 +1507,19 @@ condition](#safe-assignment-in-condition). end ``` +* +Don't omit the parameter parentheses when defining a stabby lambda with +parameters. +[[link](#stabby-lambda-with-args)] + + ```Ruby + # bad + l = ->x, y { something(x, y) } + + # good + l = ->(x, y) { something(x, y) } + ``` + * Omit the parameter parentheses when defining a stabby lambda with no parameters. @@ -1925,7 +1938,7 @@ no parameters. class SomeXML ... end - + class XMLSomething ... end