Skip to content

Commit acb644c

Browse files
committed
---
yaml --- r: 187857 b: refs/heads/tmp c: f49fd40 h: refs/heads/master i: 187855: e86affb v: v3
1 parent 0242371 commit acb644c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 0685e7a185d8687f2886af72b63965cbfdc2525e
37+
refs/heads/tmp: f49fd40f208827798ccd91394e3a3986c8bc6886
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To Cargo-ify our project, we need to do two things: Make a `Cargo.toml`
2626
configuration file, and put our source file in the right place. Let's
2727
do that part first:
2828

29-
```{bash}
29+
```bash
3030
$ mkdir src
3131
$ mv main.rs src/main.rs
3232
```
@@ -38,7 +38,7 @@ place for everything, and everything in its place.
3838

3939
Next, our configuration file:
4040

41-
```{bash}
41+
```bash
4242
$ editor Cargo.toml
4343
```
4444

@@ -75,7 +75,7 @@ well as what it is named.
7575

7676
Once you have this file in place, we should be ready to build! Try this:
7777

78-
```{bash}
78+
```bash
7979
$ cargo build
8080
Compiling hello_world v0.0.1 (file:///home/yourname/projects/hello_world)
8181
$ ./target/hello_world
@@ -113,7 +113,7 @@ can start developing right away.
113113

114114
To start a new project with Cargo, use `cargo new`:
115115

116-
```{bash}
116+
```bash
117117
$ cargo new hello_world --bin
118118
```
119119

@@ -122,7 +122,7 @@ were making a library, we'd leave it off.
122122

123123
Let's check out what Cargo has generated for us:
124124

125-
```{bash}
125+
```bash
126126
$ cd hello_world
127127
$ tree .
128128
.
@@ -138,21 +138,21 @@ manager. It's not necessary, but it's certainly useful.
138138

139139
This is all we need to get started. First, let's check out `Cargo.toml`:
140140

141-
```{toml}
141+
```toml
142142
[package]
143143

144144
name = "hello_world"
145145
version = "0.0.1"
146146
authors = ["Your Name <[email protected]>"]
147147
```
148148

149-
Cargo has populated this file with reasonable defaults based off the arguments
150-
you gave it and your Git global config. You may notice that Cargo has also initialized
151-
the `hello_world` directory as a Git repository.
149+
Cargo has populated this file with reasonable defaults based off the arguments you gave
150+
it and your `git` global configuration. You may notice that Cargo has also initialized
151+
the `hello_world` directory as a `git` repository.
152152

153153
Here's what's in `src/main.rs`:
154154

155-
```{rust}
155+
```rust
156156
fn main() {
157157
println!("Hello, world!");
158158
}

0 commit comments

Comments
 (0)