about summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-06 05:37:17 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-06 16:21:06 +0530
commit08a2bef63286479f6abab22f23e3b48e58e5c711 (patch)
tree4d0dca171aa29878aa198d61d07030920e292212 /src/libstd/path.rs
parent6bf0cd8f0031d02eaa341adc62a7cba1af435063 (diff)
parentdc2e444e506c31e8f4a4331c7f6264ca6c107bb6 (diff)
downloadrust-08a2bef63286479f6abab22f23e3b48e58e5c711.tar.gz
rust-08a2bef63286479f6abab22f23e3b48e58e5c711.zip
Rollup merge of #21954 - jbcrail:fix-misspelled-comments, r=steveklabnik
 The spelling corrections were made in both documentation comments and
regular comments.
Diffstat (limited to 'src/libstd/path.rs')
-rwxr-xr-xsrc/libstd/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 3f4f1ec4c0d..cb213863030 100755
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -922,7 +922,7 @@ impl PathBuf {
     ///
     /// If `self.file_name()` is `None`, does nothing and returns `false`.
     ///
-    /// Otherwise, returns `tru`; if `self.exension()` is `None`, the extension
+    /// Otherwise, returns `true`; if `self.extension()` is `None`, the extension
     /// is added; otherwise it is replaced.
     pub fn set_extension<S: ?Sized + AsOsStr>(&mut self, extension: &S) -> bool {
         if self.file_name().is_none() { return false; }
@@ -1062,7 +1062,7 @@ impl Path {
         PathBuf::new(self)
     }
 
-    /// A path is *absolute* if it is indepedent of the current directory.
+    /// A path is *absolute* if it is independent of the current directory.
     ///
     /// * On Unix, a path is absolute if it starts with the root, so
     /// `is_absolute` and `has_root` are equivalent.