Commit Graph
3037 Commits
Author SHA1 Message Date
Steve Klabnik 4c3b646ca9 Merge pull request #1411 from vilyus/patch-1
typo
2018-06-20 08:13:57 -07:00
Vilyus ce300110e9 typo 2018-06-20 18:04:02 +03:00
Steve Klabnik 0b40663b89 Merge pull request #1409 from abbasfaisal/patch-1
Small typo: listing is 15-25, not 15-5.
2018-06-20 06:21:50 -07:00
Faisal Abbas 1ac1d7c7ed Small typo: listing is 15-25, not 15-5. 2018-06-20 15:56:14 +05:00
steveklabnik f475da63a1 Fix the build 2018-06-16 14:40:26 -04:00
Steve Klabnik 3d63cf7329 Merge pull request #1402 from Turing-Chu/master
fix no '$ ls' in PowerShell
2018-06-16 11:36:56 -07:00
祝晓东 7e5a2c33a6 fix no '$ ls' in PowerShell 2018-06-16 12:57:53 +08:00
steveklabnik baed160ecb fix up the book to add impl Trait
Fixes #1291
2018-06-08 10:54:55 -04:00
steveklabnik f22dace409 Move the 'new features' appendex into the text
Fixes #1294
2018-06-08 10:05:42 -04:00
Steve Klabnik a764e8755c Merge pull request #1395 from dkim/rustup-override
Fix a typo
2018-06-06 14:16:24 -04:00
Deokhwan Kim de99df4c9f Fix a typo
A subcommand that sets the toolchain for a directory is `set`.
2018-06-06 13:07:09 -04:00
steveklabnik b23a2cece6 tweak wording around backreference
Thanks @kertase! https://github.com/rust-lang/book/issues/1389#issuecomment-394705560
2018-06-05 15:30:04 -04:00
steveklabnik e7f9782009 Clarify that MyBox<T> is not on the heap
Fixes #1357
2018-06-05 06:49:20 -04:00
steveklabnik 79e9cc1ae7 Add another forward reference to the dereference operator.
Fixes #1369
2018-06-05 06:46:31 -04:00
steveklabnik d15f4f964d talk about integer overflow
Fixes #1306
2018-06-05 06:44:37 -04:00
steveklabnik 362e16a0e9 Talk about the type of arrays
Fixes #1336
2018-06-01 11:50:28 -04:00
steveklabnik 96cc444e34 tweak wording around cargo new
Fixes #1383
2018-06-01 11:46:41 -04:00
steveklabnik 87b4b59ac3 fix the tests
https://github.com/rust-lang/book/commit/5baf2e83e1b10c2e77e063bb2f511bd383d18865 and https://github.com/rust-lang/book/commit/4978b7c9ce3199719b10c21f3d1356189da822c9 introduced some bugs, whoops!
2018-06-01 09:41:28 -04:00
steveklabnik 4978b7c9ce Update the book to use dyn Trait
Fixes #1277
2018-06-01 08:40:36 -04:00
steveklabnik 5baf2e83e1 move to fs::read_to_string
This is much more convenient!

Fixes #1355
2018-06-01 08:21:17 -04:00
steveklabnik fd146fc380 Remove references to Rust 1.21
We are not tracking any specific version any more.
2018-06-01 07:35:06 -04:00
steveklabnik 35e9267921 Fix powershell explanation in chapter 1
While you use `ls`, the output is different, and you also have a third
file.

Fixes #1370
2018-06-01 07:32:45 -04:00
steveklabnik 83501bce82 Document the size of bool
Fixes #1379
2018-06-01 07:26:20 -04:00
steveklabnik b6e643d514 Clarify that tuples have a fixed length.
Fixes #1380
2018-06-01 07:24:59 -04:00
Steve Klabnik 69990bb31a Merge pull request #1377 from asgii/patch-1
Tweak description of ? operator
2018-06-01 07:21:11 -04:00
Steve Klabnik 88c545d8a4 Merge pull request #1374 from ledoge/patch-1
Update ch02-00-guessing-game-tutorial.md
2018-06-01 07:20:23 -04:00
Steve Klabnik 94f77e2646 Merge pull request #1316 from jesselucas/master
Removing references to `--bin` option when referencing `cargo new`
2018-06-01 07:20:02 -04:00
Steve Klabnik 1364286f32 Merge pull request #1381 from grizwako/patch-1
Fix typo, should be "compiling" instead of "running".
2018-05-29 04:18:24 -04:00
Steve Klabnik 889290d5bc Merge pull request #1378 from cgay/dev
Simple typo in README.md
2018-05-29 04:18:09 -04:00
Marin Grizelj 9a687c71c7 Fix typo, should be compiling instead of running. 2018-05-27 17:34:24 +02:00
Carl Gay 01627bd871 Simple typo in README.md 2018-05-26 17:36:44 -04:00
Jesse Lucas b5a37f7540 Removing references to --bin option when referencing cargo new
Reflecting changes made in Rust 1.25 since flag `--bin` is now the
default behavior for `cargo new`
2018-05-26 15:44:22 -04:00
asgii 3e96881738 Tweak description of ? operator
Amends the description of the ? operator's behaviour: if Ok, returns the value inside the Ok; if Err, returns the whole Err, not just the value inside.

Clarifies the para following.  'used with' is imprecise.  The user 'uses' the ? operator with error values generally, but it's not clear whether the error value parameter or the returned error value of ? is the subject of the sentence.  Operators do not generally 'use' parameters.  More precisely, the error value 'taken by' ? goes through `from` before being returned.
2018-05-26 16:09:14 +01:00
steveklabnik 36d65d0016 fix redirects 2018-05-22 11:29:38 -04:00
Steve Klabnik 285e2d9a50 Merge pull request #1376 from pbn4/patch-1
Update ch14-03-cargo-workspaces.md
2018-05-22 10:59:04 -04:00
Michał Plebański 71c467d132 Update ch14-03-cargo-workspaces.md 2018-05-22 13:21:35 +02:00
Steve Klabnik c0c1134921 Merge pull request #1371 from d-e-s-o/fix-typo
Fix typo in section about closures
2018-05-21 20:41:34 -04:00
Steve Klabnik 453131990c Merge pull request #1312 from rcoh/patch-1
Add documentation for nested matching
2018-05-21 20:40:50 -04:00
Daniel Mueller 658a26dc12 Fix typo in section about closures 2018-05-21 17:09:33 -07:00
Russell Cohen 2242941ce6 Update ch18-03-pattern-syntax.md 2018-05-21 15:59:22 -07:00
Russell Cohen ae06e535dc Small formatting tweaks 2018-05-21 15:58:32 -07:00
Steve Klabnik db47f12d06 Merge pull request #1304 from ltfschoen/patch-4
Show how to use `match` to handle `Option` output of `get` method
2018-05-21 18:13:21 -04:00
steveklabnik 4c93953798 update frontmatter 2018-05-21 15:26:24 -04:00
Steve Klabnik 5e44e220e3 Merge pull request #1375 from rust-lang/sync-book
sync up last chapters
2018-05-21 15:09:14 -04:00
steveklabnik 068a3062e1 sync up last chapters
In #1297, I forked the 2018 edition off. At the time, not all chapters were ready. The second edition has now shipped, and so these chapters are now updated with those last changes.
2018-05-21 15:05:18 -04:00
ledoge 35f58a6026 Update ch02-00-guessing-game-tutorial.md
Add missing `mut` and semicolon in text
2018-05-21 15:05:37 +02:00
Carol (Nichols || Goulding) 347a8bf6be Another match statement -> match expression nostarch-first-printing 2018-05-18 13:40:28 -04:00
Carol (Nichols || Goulding) bb57ba2f7c Merge pull request #1368 from ajuckel/slice-off-by-one
Fix off-by-one error in slice example
2018-05-18 13:33:04 -04:00
Carol (Nichols || Goulding) df749d130e Merge remote-tracking branch 'origin/pr/1367' 2018-05-18 13:32:30 -04:00
Carol (Nichols || Goulding) 420eb8790c match statement -> match expression 2018-05-18 13:32:27 -04:00