| author | |
| committer | |
| log | 93ca0c4a5e040baacfdda495439c4a21467e0e51 |
| tree | 965b806127e3ccace9f89cf8e87bf660b7a56c46 |
| parent | aa0b93e87579e0a732fc6ef9cfa3d1cc071e8559 |
0x1F (`control_code.us`) itself is also a control code.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/ascii.zig+1-1| ... | ... | @@ -232,7 +232,7 @@ pub fn isAlpha(c: u8) bool { |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | pub fn isCntrl(c: u8) bool { |
| 235 | return c < 0x20 or c == 127; //DEL | |
| 235 | return c <= control_code.us or c == control_code.del; | |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | pub fn isDigit(c: u8) bool { |