diff options
| author | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-07-27 12:23:57 +0200 |
|---|---|---|
| committer | nico-bb <64324649+nico-bb@users.noreply.github.com> | 2022-07-27 12:23:57 +0200 |
| commit | 60d9106f5ed1834ebe62862ed9aba395e080c6bd (patch) | |
| tree | da5a5b29a0a7787bb39e57e405cb78ebf58340f8 /tools | |
| parent | 98076e5fa6e80905936c9487f4bd5960b4bd9731 (diff) | |
Update snapshot.odin
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/snapshot/snapshot.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/odinfmt/snapshot/snapshot.odin b/tools/odinfmt/snapshot/snapshot.odin index 86dadea..ba5924f 100644 --- a/tools/odinfmt/snapshot/snapshot.odin +++ b/tools/odinfmt/snapshot/snapshot.odin @@ -64,11 +64,11 @@ snapshot_file :: proc(path: string) -> bool { scanner.init(&snapshot_scanner, string(snapshot_data)) formatted_scanner := scanner.Scanner {} scanner.init(&formatted_scanner, string(formatted)) - cmp: for { + for { s_ch := scanner.next(&snapshot_scanner) f_ch := scanner.next(&formatted_scanner) if s_ch == scanner.EOF || f_ch == scanner.EOF { - break cmp + break } if s_ch == '\r' { |