Skip to content

Commit 5afa31c

Browse files
committed
Adds exception for empty hash in writing style docs closes #2113
1 parent d7538b6 commit 5afa31c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

writing-docs/STYLEGUIDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ they often represent. Please use that syntax whenever possible.
122122

123123
Using the second form is more idiomatic and avoids confusion with
124124
blocks. In fact, you don't need to use `:=` in the second sentence,
125-
precisely for this reason.
125+
precisely for this reason. This does not apply to empty hashes, which
126+
should be declared using `{}`:
127+
128+
my %hash = {};
126129

127130
### Try to express intent, rather than simply reflex syntax
128131

0 commit comments

Comments
 (0)