diff options
| author | bors <bors@rust-lang.org> | 2013-10-22 17:06:09 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-22 17:06:09 -0700 |
| commit | 22a5ebdc6b13089d2322d9944bdec1507d21eec2 (patch) | |
| tree | c13edfe3060b6024436b7f7abbdc2d29bf25312a | |
| parent | a7453ad0dffd94e57389b893527111c98a96ec40 (diff) | |
| parent | d83c5f7b1b5db74348c9d80a047364d10f2bc82d (diff) | |
| download | rust-22a5ebdc6b13089d2322d9944bdec1507d21eec2.tar.gz rust-22a5ebdc6b13089d2322d9944bdec1507d21eec2.zip | |
auto merge of #10020 : mletterle/rust/documentation-fixes, r=thestinger
I'm planning on doing more updates, but the section in the tutorial stood out at me since the 'rust' tool no longer exists, this should probably be removed to lessen confusion.
| -rw-r--r-- | doc/rust.md | 2 | ||||
| -rw-r--r-- | doc/tutorial.md | 16 | ||||
| -rw-r--r-- | src/libstd/rt/io/mod.rs | 4 |
3 files changed, 3 insertions, 19 deletions
diff --git a/doc/rust.md b/doc/rust.md index 2d4b0c15cb8..fd2da43a037 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -3168,7 +3168,7 @@ Raw pointers (`*`) : Raw pointers are pointers without safety or liveness guarantees. Raw pointers are written `*content`, for example `*int` means a raw pointer to an integer. - Copying or dropping a raw pointer is has no effect on the lifecycle of any other value. + Copying or dropping a raw pointer has no effect on the lifecycle of any other value. Dereferencing a raw pointer or converting it to any other pointer type is an [`unsafe` operation](#unsafe-functions). Raw pointers are generally discouraged in Rust code; they exist to support interoperability with foreign code, diff --git a/doc/tutorial.md b/doc/tutorial.md index 42617a96daa..7451919c5be 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -151,22 +151,6 @@ declaration to appear at the top level of the file: all statements must live inside a function. Rust programs can also be compiled as libraries, and included in other programs. -## Using the rust tool - -While using `rustc` directly to generate your executables, and then -running them manually is a perfectly valid way to test your code, -for smaller projects, prototypes, or if you're a beginner, it might be -more convenient to use the `rust` tool. - -The `rust` tool provides central access to the other rust tools, -as well as handy shortcuts for directly running source files. -For example, if you have a file `foo.rs` in your current directory, -`rust run foo.rs` would attempt to compile it and, if successful, -directly run the resulting binary. - -To get a list of all available commands, simply call `rust` without any -argument. - ## Editing Rust code There are vim highlighting and indentation scripts in the Rust source diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs index c0971b5d3cd..f78a20dd111 100644 --- a/src/libstd/rt/io/mod.rs +++ b/src/libstd/rt/io/mod.rs @@ -12,8 +12,8 @@ This module defines the Rust interface for synchronous I/O. It models byte-oriented input and output with the Reader and Writer traits. -Types that implement both `Reader` and `Writer` and called 'streams', -and automatically implement trait `Stream`. +Types that implement both `Reader` and `Writer` are called 'streams', +and automatically implement the `Stream` trait. Implementations are provided for common I/O streams like file, TCP, UDP, Unix domain sockets. Readers and Writers may be composed to add capabilities like string |
