Skip to content

Commit

Permalink
Merge pull request #5908 from straight-shoota/patch-1
Browse files Browse the repository at this point in the history
Update documentation for NamedTupleLiteral#[]
  • Loading branch information
sdogruyol authored Apr 12, 2018
2 parents 4400657 + 5c8f62f commit fedb6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ module Crystal::Macros
def double_splat(trailing_string : StringLiteral = nil) : MacroId
end

# Similar to `NamedTuple#[]`
# Similar to `NamedTuple#[]` but returns `NilLiteral` if *key* is undefined.
def [](key : ASTNode) : ASTNode
end

Expand Down

0 comments on commit fedb6dd

Please sign in to comment.