fix typo
This commit is contained in:
parent
7f234cabc2
commit
db7dcf283d
@ -5,7 +5,7 @@ use std::thread;
|
||||
fn raw_to_string(rawdata: &[u8]) -> String {
|
||||
let mut data = String::new();
|
||||
for byte in rawdata.iter() {
|
||||
if *byte >= 32 && *byte >= 126 {
|
||||
if *byte >= 32 && *byte <= 126 {
|
||||
data.push((*byte).into());
|
||||
} else {
|
||||
data.push_str(&format!("\\{:x?} ", *byte));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user