Skip to content

Commit 8652fd0

Browse files
sylvestrecakebaker
andcommitted
improve the variable name
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
1 parent f75aa5d commit 8652fd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/uu/hashsum/src/hashsum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,12 @@ where
791791
}
792792

793793
fn unescape_filename(filename: &str) -> (String, &'static str) {
794-
let escaped = filename
794+
let unescaped = filename
795795
.replace("\\\\", "\\")
796796
.replace("\\n", "\n")
797797
.replace("\\r", "\r");
798-
let prefix = if escaped == filename { "" } else { "\\" };
799-
(escaped, prefix)
798+
let prefix = if unescaped == filename { "" } else { "\\" };
799+
(unescaped, prefix)
800800
}
801801

802802
fn escape_filename(filename: &Path) -> (String, &'static str) {

0 commit comments

Comments
 (0)