Skip to content

Commit e63b4c9

Browse files
committed
---
yaml --- r: 212237 b: refs/heads/tmp c: 629be84 h: refs/heads/master i: 212235: a8f109b v: v3
1 parent 74925e4 commit e63b4c9

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: 62e70d35be3fe532c26a400b499c58a18f18dd3a
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: f9bfebb79087e6aa37037561aa7b1748d24f53c9
35+
refs/heads/tmp: 629be845fdf58d34f5dc3bd1674ea57ebf3c9380
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: b77d60adb019bb5de05e884a99f3290ec4694137
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/doc/trpl/hello-cargo.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,17 @@ version = "0.0.1"
6363
authors = [ "Your name <[email protected]>" ]
6464
```
6565

66-
This file is in the [TOML][toml] format. Let’s let it explain itself to you:
66+
This file is in the [TOML][toml] format. TOML is similar to INI, but has some
67+
extra goodies. According to the Rust docs,
6768

6869
> TOML aims to be a minimal configuration file format that's easy to read due
6970
> to obvious semantics. TOML is designed to map unambiguously to a hash table.
7071
> TOML should be easy to parse into data structures in a wide variety of
7172
> languages.
7273
73-
TOML is very similar to INI, but with some extra goodies.
74-
7574
[toml]: https://github.com/toml-lang/toml
7675

77-
Once you have this file in place, we should be ready to build! Try this:
76+
Once you have this file in place, we should be ready to build! To do so, run:
7877

7978
```bash
8079
$ cargo build
@@ -83,7 +82,7 @@ $ ./target/debug/hello_world
8382
Hello, world!
8483
```
8584

86-
Bam! We build our project with `cargo build`, and run it with
85+
Bam! We built our project with `cargo build`, and ran it with
8786
`./target/debug/hello_world`. We can do both in one step with `cargo run`:
8887

8988
```bash
@@ -104,9 +103,9 @@ Hello, world!
104103
```
105104

106105
This hasn’t bought us a whole lot over our simple use of `rustc`, but think
107-
about the future: when our project gets more complex, we would need to do more
106+
about the future: when our project gets more complex, we need to do more
108107
things to get all of the parts to properly compile. With Cargo, as our project
109-
grows, we can just `cargo build`, and it’ll work the right way.
108+
grows, we can just run `cargo build`, and it’ll work the right way.
110109

111110
When your project is finally ready for release, you can use
112111
`cargo build --release` to compile your project with optimizations.
@@ -119,7 +118,7 @@ name = "hello_world"
119118
version = "0.0.1"
120119
```
121120

122-
This file is used by Cargo to keep track of dependencies in your application.
121+
The `Cargo.lock` is used by Cargo to keep track of dependencies in your application.
123122
Right now, we don’t have any, so it’s a bit sparse. You won't ever need
124123
to touch this file yourself, just let Cargo handle it.
125124

0 commit comments

Comments
 (0)