Skip to content

Commit efe4c6a

Browse files
committed
core: Use the or binop instead of the double-star binop
1 parent 494cf46 commit efe4c6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ fn list_dir(p: path) -> [str] {
458458
fn star(p: str) -> str {
459459
let pl = str::len(p);
460460
if pl == 0u || (p[pl - 1u] as char != path::consts::path_sep
461-
** p[pl - 1u] as char != path::consts::alt_path_sep) {
461+
|| p[pl - 1u] as char != path::consts::alt_path_sep) {
462462
p + path::path_sep() + "*"
463463
} else {
464464
p + "*"

0 commit comments

Comments
 (0)