From 70dde68cfbf1a549fdcd0a9d60c1e90f3b1f2a22 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 14 Jun 2012 19:09:36 -0700 Subject: [PATCH] Annotate one FIXME and remove another ...since we probably won't have this kind of typestate. --- src/libcore/path.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libcore/path.rs b/src/libcore/path.rs index 2e62b73063d9..560e4282411a 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -12,20 +12,20 @@ export split; export splitext; export normalize; -// FIXME: This type should probably be constrained +// FIXME: This type should probably be constrained (#2624) #[doc = "A path or fragment of a filesystem path"] type path = str; #[cfg(unix)] mod consts { #[doc = " - The primary path seperator character for the platform + The primary path separator character for the platform On all platforms it is '/' "] const path_sep: char = '/'; #[doc = " - The secondary path seperator character for the platform + The secondary path separator character for the platform On Unixes it is '/'. On Windows it is '\\'. "] @@ -98,7 +98,6 @@ fn basename(pp: path) -> path { ret split_dirname_basename(pp).basename; } -// FIXME: Need some typestate to avoid bounds check when len(pre) == 0 #[doc = " Connects to path segments