Skip to content

Commit 1675145

Browse files
Add Nil return type restriction to String::Formatter#consume_substitution (crystal-lang#14430)
1 parent 76ea339 commit 1675145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/string/formatter.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct String::Formatter(A)
6565
end
6666
end
6767

68-
private def consume_substitution
68+
private def consume_substitution : Nil
6969
key = consume_substitution_key '}'
7070
# note: "`@io << (arg_at(key))` has no type" without this `arg` variable
7171
arg = arg_at(key)

0 commit comments

Comments
 (0)