Skip to content

Commit ecda86b

Browse files
committed
Tweak a terminology
Follow-up to rubocop/rubocop-ast#365 (comment) "implicit `it` parameter" doesn't seem to be a commonly used term. Use "`it` block parameter" instead.
1 parent 3af0f67 commit ecda86b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/AST_FORMAT.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1227,10 +1227,10 @@ s(:numblock,
12271227
~~~~~~~~~~~~~~~~ expression
12281228
~~~
12291229

1230-
## Block with implicit it parameter (prism only)
1230+
## Block with `it` block parameter (Prism only)
12311231

1232-
Ruby 3.4 introduced a feature called the "implicit it parameter".
1233-
Implicit it, numbered, and ordinal parameters are mutually exclusive, so if the block
1232+
Ruby 3.4 introduced a feature called the "`it` block parameter".
1233+
`it`, numbered, and ordinal parameters are mutually exclusive, so if the block
12341234
only has the implicit it parameter it also has a different AST node.
12351235

12361236
The second child will always be the symbol `it`.

0 commit comments

Comments
 (0)