core: Use the or binop instead of the double-star binop

This commit is contained in:
Brian Anderson 2012-04-01 15:05:29 -07:00
parent 494cf46ea3
commit efe4c6af23
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "*"