Skip to content

Commit 63e99f9

Browse files
Cargo begins version number at 0.0.1 instead of 0.1.0
1 parent 3f5d0b5 commit 63e99f9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/doc/guide.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ Check out the generated `Cargo.toml`:
17691769
[package]
17701770
17711771
name = "guessing_game"
1772-
version = "0.1.0"
1772+
version = "0.0.1"
17731773
authors = ["Your Name <[email protected]>"]
17741774
```
17751775

@@ -1788,7 +1788,7 @@ Let's try compiling what Cargo gave us:
17881788

17891789
```{bash}
17901790
$ cargo build
1791-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
1791+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
17921792
$
17931793
```
17941794

@@ -1901,7 +1901,7 @@ Let's try to compile this using `cargo build`:
19011901

19021902
```{notrust,no_run}
19031903
$ cargo build
1904-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
1904+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
19051905
src/main.rs:7:26: 7:34 error: the type of this value must be known in this context
19061906
src/main.rs:7 let secret_number = (rand::random() % 100i) + 1i;
19071907
^~~~~~~~
@@ -1949,7 +1949,7 @@ fn main() {
19491949

19501950
```{notrust,ignore}
19511951
$ cargo build
1952-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
1952+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
19531953
$
19541954
```
19551955

@@ -2008,8 +2008,8 @@ And trying it out:
20082008

20092009
```{notrust,ignore}
20102010
$ cargo build
2011-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2012-
$ ./target/guessing_game
2011+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
2012+
$ ./target/guessing_game
20132013
Guess the number!
20142014
The secret number is: 57
20152015
Please input your guess.
@@ -2063,7 +2063,7 @@ If we try to compile, we'll get some errors:
20632063

20642064
```{notrust,ignore}
20652065
$ cargo build
2066-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2066+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
20672067
src/main.rs:20:15: 20:20 error: mismatched types: expected `int` but found `collections::string::String` (expected int but found struct collections::string::String)
20682068
src/main.rs:20 match cmp(input, secret_number) {
20692069
^~~~~
@@ -2117,7 +2117,7 @@ And try compiling again:
21172117

21182118
```{notrust,ignore}
21192119
$ cargo build
2120-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2120+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
21212121
src/main.rs:20:15: 20:20 error: mismatched types: expected `uint` but found `collections::string::String` (expected uint but found struct collections::string::String)
21222122
src/main.rs:20 match cmp(input, secret_number) {
21232123
^~~~~
@@ -2220,7 +2220,7 @@ Let's try it out!
22202220

22212221
```{notrust,ignore}
22222222
$ cargo build
2223-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2223+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
22242224
src/main.rs:22:15: 22:24 error: mismatched types: expected `uint` but found `core::option::Option<uint>` (expected uint but found enum core::option::Option)
22252225
src/main.rs:22 match cmp(input_num, secret_number) {
22262226
^~~~~~~~~
@@ -2345,8 +2345,8 @@ Let's try it!
23452345

23462346
```{notrust,ignore}
23472347
$ cargo build
2348-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2349-
$ ./target/guessing_game
2348+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
2349+
$ ./target/guessing_game
23502350
Guess the number!
23512351
The secret number is: 58
23522352
Please input your guess.
@@ -2423,8 +2423,8 @@ that `return`? If we give a non-number answer, we'll `return` and quit. Observe:
24232423

24242424
```{notrust,ignore}
24252425
$ cargo build
2426-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2427-
$ ./target/guessing_game
2426+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
2427+
$ ./target/guessing_game
24282428
Guess the number!
24292429
The secret number is: 59
24302430
Please input your guess.
@@ -2556,8 +2556,8 @@ Now we should be good! Let's try:
25562556

25572557
```{rust,ignore}
25582558
$ cargo build
2559-
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
2560-
$ ./target/guessing_game
2559+
Compiling guessing_game v0.0.1 (file:/home/you/projects/guessing_game)
2560+
$ ./target/guessing_game
25612561
Guess the number!
25622562
The secret number is: 61
25632563
Please input your guess.

0 commit comments

Comments
 (0)