diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc index 849292eae3..284a5b139b 100644 --- a/doc/syntax/pattern_matching.rdoc +++ b/doc/syntax/pattern_matching.rdoc @@ -446,9 +446,9 @@ Approximate syntax is: | Constant(*variable, pattern, ..., *variable) | Constant[*variable, pattern, ..., *variable] - hash_pattern: {key:, pattern, key:, ..., **variable} - | Constant(key:, pattern, key:, ..., **variable) - | Constant[key:, pattern, key:, ..., **variable] + hash_pattern: {key: pattern, key:, ..., **variable} + | Constant(key: pattern, key:, ..., **variable) + | Constant[key: pattern, key:, ..., **variable] == Appendix B. Some undefined behavior examples