Skip to content

Commit

Permalink
Fix internal doc (typo & old invalid comment) (#5806)
Browse files Browse the repository at this point in the history
* Fix typo

* Remove BNF for old def declaration without parentheses
bew authored and RX14 committed Mar 11, 2018
1 parent 10fb1ff commit ed0aad8
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/compiler/crystal/syntax/ast.cr
Original file line number Diff line number Diff line change
@@ -911,10 +911,6 @@ module Crystal
# 'def' [ receiver '.' ] name '(' [ arg [ ',' arg ]* ] ')'
# body
# 'end'
# |
# 'def' [ receiver '.' ] name arg [ ',' arg ]*
# body
# 'end'
#
class Def < ASTNode
property free_vars : Array(String)?
2 changes: 1 addition & 1 deletion src/compiler/crystal/types.cr
Original file line number Diff line number Diff line change
@@ -382,7 +382,7 @@ module Crystal

record DefInMacroLookup

# Looks up a macro with the give name and matching the given args
# Looks up a macro with the given name and matching the given args
# and named_args. Returns:
# - a `Macro`, if found
# - `nil`, if not found

0 comments on commit ed0aad8

Please sign in to comment.