Skip to content

Commit

Permalink
add more comment for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
blahgeek committed Jan 7, 2024
1 parent d8c4cfb commit 702e2d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ impl LispObject {
if c == '\"' || c == '\\' {
result.push('\\');
result.push(c);
} else if (c as u32) < 32 || (c as u32) == 127 { // not printable
} else if (c as u32) < 32 || (c as u32) == 127 {
// not printable
// NOTE: cannot use escape for c in 128..=255, otherwise the string would become unibyte
result += &format!("\\{:03o}", c as u32);
} else {
result.push(c);
Expand Down

0 comments on commit 702e2d5

Please sign in to comment.