diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-02 01:13:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-02 01:13:28 +0100 |
| commit | b1ea29194270741d07a0aaf4f7c33813ac8736f0 (patch) | |
| tree | a056dbde16d4cbafcc11138b03ae8845ceda08f9 /core/io | |
| parent | d32d1b7e079351b52c9f66f5ac0a885b9f046b0d (diff) | |
Fix typos
Diffstat (limited to 'core/io')
| -rw-r--r-- | core/io/util.odin | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/io/util.odin b/core/io/util.odin index 538e1a077..9d253807b 100644 --- a/core/io/util.odin +++ b/core/io/util.odin @@ -116,14 +116,14 @@ write_encoded_rune :: proc(w: Writer, r: rune, write_quote := true, n_written: ^ write_byte(w, '\'', &n) or_return } switch r { - case '\a': write_string(w, `\a"`, &n) or_return - case '\b': write_string(w, `\b"`, &n) or_return - case '\e': write_string(w, `\e"`, &n) or_return - case '\f': write_string(w, `\f"`, &n) or_return - case '\n': write_string(w, `\n"`, &n) or_return - case '\r': write_string(w, `\r"`, &n) or_return - case '\t': write_string(w, `\t"`, &n) or_return - case '\v': write_string(w, `\v"`, &n) or_return + case '\a': write_string(w, `\a`, &n) or_return + case '\b': write_string(w, `\b`, &n) or_return + case '\e': write_string(w, `\e`, &n) or_return + case '\f': write_string(w, `\f`, &n) or_return + case '\n': write_string(w, `\n`, &n) or_return + case '\r': write_string(w, `\r`, &n) or_return + case '\t': write_string(w, `\t`, &n) or_return + case '\v': write_string(w, `\v`, &n) or_return case: if r < 32 { write_string(w, `\x`, &n) or_return @@ -132,8 +132,8 @@ write_encoded_rune :: proc(w: Writer, r: rune, write_quote := true, n_written: ^ s := strconv.append_bits(buf[:], u64(r), 16, true, 64, strconv.digits, nil) switch len(s) { case 0: write_string(w, "00", &n) or_return - case 1: write_byte(w, '0', &n) or_return - case 2: write_string(w, s, &n) or_return + case 1: write_byte(w, '0', &n) or_return + case 2: write_string(w, s, &n) or_return } } else { write_rune(w, r, &n) or_return |