Skip to content

Commit 629be84

Browse files
committed
edit for clarity and grammar
1 parent f9bfebb commit 629be84

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/doc/trpl/hello-cargo.md

+7-8
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)