Upated return type

This commit is contained in:
Dominic Grimm 2021-12-27 19:40:09 +01:00
parent a788bdef34
commit 0b7e805961
1 changed files with 3 additions and 3 deletions

View File

@ -33,14 +33,14 @@ module Sexpr
private def read_value(is_terminator : Regex) : String private def read_value(is_terminator : Regex) : String
value = "" value = ""
while !is_terminator.matches?(strChar = get_char.to_s) while !is_terminator.matches?(str_char = get_char.to_s)
value += strChar value += str_char
end end
value value
end end
private def un_get_char private def un_get_char : Nil
@i -= 1 @i -= 1
end end