Skip to content

Commit 702e2d5

Browse files
committed
add more comment for last commit
1 parent d8c4cfb commit 702e2d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bytecode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ impl LispObject {
4848
if c == '\"' || c == '\\' {
4949
result.push('\\');
5050
result.push(c);
51-
} else if (c as u32) < 32 || (c as u32) == 127 { // not printable
51+
} else if (c as u32) < 32 || (c as u32) == 127 {
52+
// not printable
53+
// NOTE: cannot use escape for c in 128..=255, otherwise the string would become unibyte
5254
result += &format!("\\{:03o}", c as u32);
5355
} else {
5456
result.push(c);

0 commit comments

Comments
 (0)