fix scanner

This commit is contained in:
zongor 2024-07-06 21:15:21 -04:00
parent 9122c3078d
commit 10bb9a7d3c
1 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,7 @@ func main() {
func repl() {
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
fmt.Print("> ")
for fmt.Print("> "); scanner.Scan(); fmt.Print("> ") {
line := scanner.Text()
if len(line) == 0 {
return