diff options
| author | bors <bors@rust-lang.org> | 2013-12-15 05:06:24 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-15 05:06:24 -0800 |
| commit | ef7969e86f0b53e4236ca627b31ac09413c07b82 (patch) | |
| tree | a8126b39b840ae330d92ac5e346d151fab32c291 /src/libstd/io | |
| parent | 09bfb3b47383d566a5bbf5aef9429e5c24a93b6d (diff) | |
| parent | b0bcbbb154f11aeb302b45e4ba0627604af181a0 (diff) | |
| download | rust-ef7969e86f0b53e4236ca627b31ac09413c07b82.tar.gz rust-ef7969e86f0b53e4236ca627b31ac09413c07b82.zip | |
auto merge of #10974 : huonw/rust/spellck, r=alexcrichton
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/buffered.rs | 4 | ||||
| -rw-r--r-- | src/libstd/io/fs.rs | 14 | ||||
| -rw-r--r-- | src/libstd/io/mod.rs | 6 | ||||
| -rw-r--r-- | src/libstd/io/native/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/signal.rs | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 04f4d50036f..365866872ec 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -202,8 +202,8 @@ impl<W: Writer> Decorator<W> for BufferedWriter<W> { fn inner_mut_ref<'a>(&'a mut self) -> &'a mut W { &mut self.inner } } -/// Wraps a Writer and buffers output to it, flushing whenever a newline (0xa, -/// '\n') is detected. +/// Wraps a Writer and buffers output to it, flushing whenever a newline (`0x0a`, +/// `'\n'`) is detected. /// /// Note that this structure does NOT flush the output when dropped. pub struct LineBufferedWriter<W> { diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index 5bfdf685bea..a1465ca7b33 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -249,7 +249,7 @@ pub fn unlink(path: &Path) { /// directory, etc. This function will traverse symlinks to query /// information about the destination file. /// -/// Returns a fully-filled out stat structure on succes, and on failure it +/// Returns a fully-filled out stat structure on success, and on failure it /// will return a dummy stat structure (it is expected that the condition /// raised is handled as well). /// @@ -342,7 +342,7 @@ pub fn rename(from: &Path, to: &Path) { /// /// # Errors /// -/// Will raise an `io_error` condition is the following situtations, but is +/// Will raise an `io_error` condition is the following situations, but is /// not limited to just these cases: /// /// * The `from` path is not a file @@ -391,7 +391,7 @@ pub fn copy(from: &Path, to: &Path) { /// /// # Errors /// -/// If this funciton encounters an I/O error, it will raise on the `io_error` +/// If this function encounters an I/O error, it will raise on the `io_error` /// condition. Some possible error situations are not having the permission to /// change the attributes of a file or the file not existing. pub fn chmod(path: &Path, mode: io::FilePermission) { @@ -402,7 +402,7 @@ pub fn chmod(path: &Path, mode: io::FilePermission) { /// /// # Errors /// -/// This funtion will raise on the `io_error` condition on failure. +/// This function will raise on the `io_error` condition on failure. pub fn chown(path: &Path, uid: int, gid: int) { io_raise(|io| io.fs_chown(&path.to_c_str(), uid, gid)); } @@ -448,7 +448,7 @@ pub fn readlink(path: &Path) -> Option<Path> { /// /// let p = Path::new("/some/dir"); /// fs::mkdir(&p, S_IRWXU as int); -/// // If we got here, our directory exists! Horray! +/// // If we got here, our directory exists! Hooray! /// /// # Errors /// @@ -665,7 +665,7 @@ impl path::Path { io::result(|| self.stat()).is_ok() } - /// Whether the underlying implemention (be it a file path, or something + /// Whether the underlying implementation (be it a file path, or something /// else) points at a "regular file" on the FS. Will return false for paths /// to non-existent locations or directories or other non-regular files /// (named pipes, etc). @@ -680,7 +680,7 @@ impl path::Path { } } - /// Whether the underlying implemention (be it a file path, + /// Whether the underlying implementation (be it a file path, /// or something else) is pointing at a directory in the underlying FS. /// Will return false for paths to non-existent locations or if the item is /// not a directory (eg files, named pipes, links, etc) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index c5ae6457515..1024f28f379 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -835,7 +835,7 @@ pub trait Writer { /// Flush this output stream, ensuring that all intermediately buffered /// contents reach their destination. /// - /// This is by default a no-op and implementors of the `Writer` trait should + /// This is by default a no-op and implementers of the `Writer` trait should /// decide whether their stream needs to be buffered or not. fn flush(&mut self) {} @@ -1057,7 +1057,7 @@ pub trait Buffer: Reader { } } - /// Reads a sequence of bytes leading up to a specified delimeter. Once the + /// Reads a sequence of bytes leading up to a specified delimiter. Once the /// specified byte is encountered, reading ceases and the bytes up to and /// including the delimiter are returned. /// @@ -1156,7 +1156,7 @@ pub trait Seek { /// A listener is a value that can consume itself to start listening for connections. /// Doing so produces some sort of Acceptor. pub trait Listener<T, A: Acceptor<T>> { - /// Spin up the listener and start queueing incoming connections + /// Spin up the listener and start queuing incoming connections /// /// # Failure /// diff --git a/src/libstd/io/native/process.rs b/src/libstd/io/native/process.rs index 1b614852737..a1f50b15f23 100644 --- a/src/libstd/io/native/process.rs +++ b/src/libstd/io/native/process.rs @@ -50,7 +50,7 @@ impl Process { /// * prog - the program to run /// * args - the arguments to pass to the program, not including the program /// itself - /// * env - an optional envrionment to specify for the child process. If + /// * env - an optional environment to specify for the child process. If /// this value is `None`, then the child will inherit the parent's /// environment /// * cwd - an optionally specified current working directory of the child, diff --git a/src/libstd/io/signal.rs b/src/libstd/io/signal.rs index 43659d24c35..3b6c6013dd2 100644 --- a/src/libstd/io/signal.rs +++ b/src/libstd/io/signal.rs @@ -34,7 +34,7 @@ pub enum Signum { Break = 21i, /// Equivalent to SIGHUP, delivered when the user closes the terminal /// window. On delivery of HangUp, the program is given approximately - /// 10 seconds to perfom any cleanup. After that, Windows will + /// 10 seconds to perform any cleanup. After that, Windows will /// unconditionally terminate it. HangUp = 1i, /// Equivalent to SIGINT, delivered when the user presses Ctrl-c. |
