about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2014-12-18 02:12:53 +0100
committerMarvin Löbel <loebel.marvin@gmail.com>2014-12-25 17:08:29 +0100
commit72c8f3772bdca40ff2be2908aaf6b6a73d1c7821 (patch)
tree4d3fd31002e58baeaf1be614a08cf2ef9a30733a /src/libstd/path
parentead198c5133fd649d1e385cfc46f344a2baaef8b (diff)
downloadrust-72c8f3772bdca40ff2be2908aaf6b6a73d1c7821.tar.gz
rust-72c8f3772bdca40ff2be2908aaf6b6a73d1c7821.zip
Prepared most `StrExt` pattern using methods for stabilization
Made iterator-returning methods return newtypes
Adjusted some docs to be forwards compatible with a generic pattern API
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/windows.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs
index 7d10188c437..4cb2e496d92 100644
--- a/src/libstd/path/windows.rs
+++ b/src/libstd/path/windows.rs
@@ -26,7 +26,7 @@ use mem;
 use option::Option;
 use option::Option::{Some, None};
 use slice::SliceExt;
-use str::{CharSplits, FromStr, StrVector, StrExt};
+use str::{SplitTerminator, FromStr, StrVector, StrExt};
 use string::{String, ToString};
 use unicode::char::UnicodeChar;
 use vec::Vec;
@@ -38,7 +38,7 @@ use super::{contains_nul, BytesContainer, GenericPath, GenericPathUnsafe};
 /// Each component is yielded as Option<&str> for compatibility with PosixPath, but
 /// every component in WindowsPath is guaranteed to be Some.
 pub type StrComponents<'a> =
-    Map<&'a str, Option<&'a str>, CharSplits<'a, char>, fn(&'a str) -> Option<&'a str>>;
+    Map<&'a str, Option<&'a str>, SplitTerminator<'a, char>, fn(&'a str) -> Option<&'a str>>;
 
 /// Iterator that yields successive components of a Path as &[u8]
 pub type Components<'a> =