From 399579785cda1bceb1a0b0848dc1d713d948166d Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Sat, 3 Jan 2015 12:26:03 -0500 Subject: [PATCH 1/2] Minor documentation edit. Number of rustc calls would depending on various circumstances. Two is misleading. --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 55465651cfb4b..ed49cc5bb39ce 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -354,7 +354,7 @@ Hello, world! Bam! We build our project with `cargo build`, and run it with `./target/hello_world`. This hasn't bought us a whole lot over our simple use of `rustc`, but think about the future: when our project has more than one -file, we would need to call `rustc` twice, and pass it a bunch of options to +file, we would need to call `rustc` more than once, and pass it a bunch of options to tell it to build everything together. With Cargo, as our project grows, we can just `cargo build` and it'll work the right way. From 053698686550852ffa6be622697baf314d2bb4b4 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Sat, 3 Jan 2015 13:00:38 -0500 Subject: [PATCH 2/2] Minor documentation edit. A tuple could be more made up of more than 2 values. Update guide to reflect. --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index ed49cc5bb39ce..cde1167982ded 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -978,7 +978,7 @@ fn main() { ``` Even though Rust functions can only return one value, a tuple _is_ one value, -that happens to be made up of two. You can also see in this example how you +that happens to be made up of more than one value. You can also see in this example how you can destructure a pattern returned by a function, as well. Tuples are a very simple data structure, and so are not often what you want.