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
  • Loading branch information
bew authored and RX14 committed Mar 11, 2018
1 parent 10fb1ff commit ed0aad8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/compiler/crystal/syntax/ast.cr
Expand Up @@ -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)?
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/crystal/types.cr
Expand Up @@ -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
Expand Down

0 comments on commit ed0aad8

Please sign in to comment.