about summary refs log tree commit diff
path: root/src/libstd/old_path
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2015-02-19 14:36:58 +0100
committerMarvin Löbel <loebel.marvin@gmail.com>2015-02-20 00:58:15 +0100
commitc8dd2d066d7b25246d2b940b7c161b8b67608b74 (patch)
tree7b6c4fecc16df3ccfc388d16b46011be49a864ba /src/libstd/old_path
parenta641996796f0ab11021671c0ce70a3c975bb4e37 (diff)
downloadrust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.tar.gz
rust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.zip
Addressed PR comments
Diffstat (limited to 'src/libstd/old_path')
-rw-r--r--src/libstd/old_path/windows.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/old_path/windows.rs b/src/libstd/old_path/windows.rs
index 887dc804c7a..80c19816bd5 100644
--- a/src/libstd/old_path/windows.rs
+++ b/src/libstd/old_path/windows.rs
@@ -522,7 +522,7 @@ impl GenericPath for Path {
 
     fn path_relative_from(&self, base: &Path) -> Option<Path> {
         fn comp_requires_verbatim(s: &str) -> bool {
-            s == "." || s == ".." || s.contains_char(SEP2)
+            s == "." || s == ".." || s.contains(SEP2)
         }
 
         if !self.equiv_prefix(base) {