Skip to content

Commit 2131f2b

Browse files
committed
Because good hackers at least check to see if the code compiles.
1 parent 42109f5 commit 2131f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn dirname(path p) -> path {
1616
// FIXME: the '/' character is a path separator on all 3 platforms we
1717
// support. This should probably be generalized a bit more in the
1818
// future, but for now this should work.
19-
i = _str.rindex(p, '/');
19+
i = _str.rindex(p, '/' as u8);
2020
if (i == -1) {
2121
ret p;
2222
}
@@ -57,5 +57,5 @@ fn list_dir(path p) -> vec[str] {
5757
// indent-tabs-mode: nil
5858
// c-basic-offset: 4
5959
// buffer-file-coding-system: utf-8-unix
60-
// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
60+
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
6161
// End:

0 commit comments

Comments
 (0)