Skip to content

Commit 70dde68

Browse files
committed
Annotate one FIXME and remove another
...since we probably won't have this kind of typestate.
1 parent c96ae78 commit 70dde68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/path.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ export split;
1212
export splitext;
1313
export normalize;
1414

15-
// FIXME: This type should probably be constrained
15+
// FIXME: This type should probably be constrained (#2624)
1616
#[doc = "A path or fragment of a filesystem path"]
1717
type path = str;
1818

1919
#[cfg(unix)]
2020
mod consts {
2121
#[doc = "
22-
The primary path seperator character for the platform
22+
The primary path separator character for the platform
2323
2424
On all platforms it is '/'
2525
"]
2626
const path_sep: char = '/';
2727
#[doc = "
28-
The secondary path seperator character for the platform
28+
The secondary path separator character for the platform
2929
3030
On Unixes it is '/'. On Windows it is '\\'.
3131
"]
@@ -98,7 +98,6 @@ fn basename(pp: path) -> path {
9898
ret split_dirname_basename(pp).basename;
9999
}
100100

101-
// FIXME: Need some typestate to avoid bounds check when len(pre) == 0
102101
#[doc = "
103102
Connects to path segments
104103

0 commit comments

Comments
 (0)