mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
core: Use the or binop instead of the double-star binop
This commit is contained in:
parent
494cf46ea3
commit
efe4c6af23
@ -458,7 +458,7 @@ fn list_dir(p: path) -> [str] {
|
||||
fn star(p: str) -> str {
|
||||
let pl = str::len(p);
|
||||
if pl == 0u || (p[pl - 1u] as char != path::consts::path_sep
|
||||
** p[pl - 1u] as char != path::consts::alt_path_sep) {
|
||||
|| p[pl - 1u] as char != path::consts::alt_path_sep) {
|
||||
p + path::path_sep() + "*"
|
||||
} else {
|
||||
p + "*"
|
||||
|
Loading…
Reference in New Issue
Block a user