From 5c8f62fa06c1c8667bcde1d8d12df2e8e3319bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 3 Apr 2018 16:23:08 +0200 Subject: [PATCH] Update documentation for NamedTupleLiteral#[] --- src/compiler/crystal/macros.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/macros.cr b/src/compiler/crystal/macros.cr index be535eae83c3..3e785fb2b4b4 100644 --- a/src/compiler/crystal/macros.cr +++ b/src/compiler/crystal/macros.cr @@ -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