Skip to content

Commit a110c01

Browse files
committed
modify format
1 parent 40c5c91 commit a110c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/builtins/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,9 +829,9 @@ impl PyStr {
829829
if max_count == 0 || (s.is_empty() && !old.is_empty()) {
830830
// nothing to do; return the original bytes
831831
s.to_owned()
832-
}else if s.is_empty() && old.is_empty(){
832+
} else if s.is_empty() && old.is_empty() {
833833
new.as_str().to_owned()
834-
}else {
834+
} else {
835835
s.replacen(old.as_str(), new.as_str(), max_count as usize)
836836
}
837837
}

0 commit comments

Comments
 (0)