diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/backtrace.rs | 6 | ||||
| -rw-r--r-- | src/libstd/rtdeps.rs | 2 | ||||
| -rw-r--r-- | src/libstd/time/duration.rs | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 905012b7bf3..cb0adaadfe8 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1418,7 +1418,7 @@ pub trait Buffer: Reader { fn consume(&mut self, amt: uint); /// Reads the next line of input, interpreted as a sequence of UTF-8 - /// encoded unicode codepoints. If a newline is encountered, then the + /// encoded Unicode codepoints. If a newline is encountered, then the /// newline is contained in the returned string. /// /// # Example diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 86036c2a2dc..5a5068f4d01 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -841,7 +841,7 @@ impl<'a, P: GenericPath> Display<'a, P> { /// Returns the path as a possibly-owned string. /// /// If the path is not UTF-8, invalid sequences will be replaced with the - /// unicode replacement char. This involves allocation. + /// Unicode replacement char. This involves allocation. #[inline] pub fn as_maybe_owned(&self) -> MaybeOwned<'a> { String::from_utf8_lossy(if self.filename { diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs index cf99efd24e6..c28b6c144a2 100644 --- a/src/libstd/rt/backtrace.rs +++ b/src/libstd/rt/backtrace.rs @@ -138,7 +138,7 @@ fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> { "$RP$" => ")", "$C$" => ",", - // in theory we can demangle any unicode code point, but + // in theory we can demangle any Unicode code point, but // for simplicity we just catch the common ones. "$x20" => " ", "$x27" => "'", @@ -461,7 +461,7 @@ mod imp { // // An additionally oddity in this function is that we initialize the // filename via self_exe_name() to pass to libbacktrace. It turns out - // that on linux libbacktrace seamlessly gets the filename of the + // that on Linux libbacktrace seamlessly gets the filename of the // current executable, but this fails on freebsd. by always providing // it, we make sure that libbacktrace never has a reason to not look up // the symbols. The libbacktrace API also states that the filename must @@ -631,7 +631,7 @@ mod imp { (val & !1) as libc::uintptr_t } - // This function also doesn't exist on android or arm/linux, so make it + // This function also doesn't exist on Android or ARM/Linux, so make it // a no-op #[cfg(target_os = "android")] #[cfg(target_os = "linux", target_arch = "arm")] diff --git a/src/libstd/rtdeps.rs b/src/libstd/rtdeps.rs index 4267d6020b2..35a87137115 100644 --- a/src/libstd/rtdeps.rs +++ b/src/libstd/rtdeps.rs @@ -22,7 +22,7 @@ extern {} // LLVM implements the `frem` instruction as a call to `fmod`, which lives in // libm. Hence, we must explicitly link to it. // -// On linux librt and libdl are indirect dependencies via rustrt, +// On Linux, librt and libdl are indirect dependencies via rustrt, // and binutils 2.22+ won't add them automatically #[cfg(target_os = "linux")] #[link(name = "dl")] diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index 17dba9af9e7..85aed47265f 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -21,7 +21,7 @@ use result::{Result, Ok, Err}; /// The number of nanoseconds in a microsecond. static NANOS_PER_MICRO: i32 = 1000; -/// The number of nanosecdons in a millisecond. +/// The number of nanoseconds in a millisecond. static NANOS_PER_MILLI: i32 = 1000_000; /// The number of nanoseconds in seconds. static NANOS_PER_SEC: i32 = 1_000_000_000; |
