Commit Graph

256 Commits

Author SHA1 Message Date
Carol (Nichols || Goulding) d76f22b72c
Remove reserved keywords that are now unreserved
These were removed in https://github.com/rust-lang/rust/pull/51196
2018-10-22 16:26:03 -04:00
Alexander Batischev 85bc772b94 ch13: closures capture from scope they're defined in 2018-10-21 12:18:11 +03:00
gemuesehai 6087f59796
Update ch12-02-reading-a-file.md
Issue #1533 [2018 Edition] Ch. 12.2. - Listing 12-3 poem.txt
Non-valid UTF-8 on Windows fixed
2018-10-20 13:18:18 +02:00
Steve Klabnik e871c45989 Revert "add anchors/references on 2018 edition of the book"
This reverts commit 0a6037360c.
2018-10-19 11:34:08 -04:00
Evgeny Kuzyakov 044dd7ee83 Fix raw identifier in ch03-00 2018-10-12 16:12:13 -07:00
Steve Klabnik 68ac9b3e74 fix spelling 2018-10-08 15:11:17 -04:00
steveklabnik 4a2483ef26 mention the prelude pattern
thanks @ketsuban
2018-10-08 15:11:17 -04:00
steveklabnik 3cdbe5eb4f spelling fix
thank you @ketsuban
2018-10-08 15:11:17 -04:00
steveklabnik b5b355a99d fix the build 2018-10-08 15:11:17 -04:00
steveklabnik 6b400cba16 Re-do modules 2018-10-08 15:11:17 -04:00
steveklabnik f7cf196f6f remove current modules text 2018-10-08 15:11:17 -04:00
Steve Klabnik c0d3b65dbf
Merge pull request #1554 from rust-lang/proc-macros
rough draft of macros chapter
2018-10-08 15:06:44 -04:00
Steve Klabnik 851515755e review tweaks 2018-10-08 15:06:27 -04:00
Steve Klabnik 5a1fbd3c70
Merge pull request #1561 from Goncalerta/clarify-multiple-traits
Clarify "Multiple traits with '+'" section.
2018-10-08 14:47:25 -04:00
Steve Klabnik 79f2364f44
Merge pull request #1560 from Goncalerta/clarify-trait-bounds-example
Correcting wrong example in ch10-02-traits.md.
2018-10-08 14:46:45 -04:00
Steve Klabnik e18697bada
Merge pull request #1555 from pduzinki/anchors-on-figures-2018-edition
add anchors/references on 2018 edition of the book
2018-10-08 14:44:54 -04:00
Steve Klabnik 38ef1f93ef
Merge pull request #1552 from mkatychev/master
added styling to captions to better distinguish them from general text
2018-10-08 14:43:26 -04:00
Steve Klabnik ea3f9b3932
Merge pull request #1551 from u32i64/master
Fix link in introduction of 2018 edition
2018-10-08 14:43:09 -04:00
Steve Klabnik 8b0bb36a45
Merge pull request #1541 from dcarosone/tuple-struct-initialisers-as-functions
mention tuple-struct initialisation as functions
2018-10-08 14:41:20 -04:00
Steve Klabnik fdb036121f
Merge pull request #1537 from rust-lang/update-for-nll
updates for non-lexical lifetimes
2018-10-08 14:40:08 -04:00
pawel duzinkiewicz edbc601a1b Merge branch 'master' into anchors-on-figures-2018-edition
# Conflicts:
#	2018-edition/src/ch11-01-writing-tests.md
#	2018-edition/src/ch12-03-improving-error-handling-and-modularity.md
2018-10-08 19:24:23 +02:00
Jason Liquorish ee34839d1c Updated incorrect references to Listing 9-9 2018-10-05 14:11:17 +01:00
Mikhail_Katychev 25bb39b112 removed font weight styling from code children of caption spans 2018-10-04 19:55:13 -05:00
PedroGonçaloCorreia 09b6e3a4d9 Clarify example in ch10-02-traits.md.
The current way wrongly implies that two different examples that behave differently actually behave the same.
2018-10-04 19:34:25 +01:00
PedroGonçaloCorreia b05b4185d7 Clarify "Multiple traits with '+'" section.
Added relevant examples with context from the previous sections.
2018-10-04 19:21:42 +01:00
pawel duzinkiewicz 0a6037360c add anchors/references on 2018 edition of the book 2018-10-02 19:38:14 +02:00
Steve Klabnik 2efb91564c rough draft of macros chapter
Fixes #1283
2018-10-01 17:20:47 -04:00
Mikhail Katychev e2dfabe679 added styling to captions to better distinguish them from general text 2018-10-01 12:47:45 -05:00
Artem Varaksa bd12949fbd Fix link in introduction of 2018 edition
Fixes #1466

Use
`https://github.com/rust-lang/book/tree/master/2018-edition/src`
instead of
`https://github.com/rust-lang/book/tree/master/second-edition/src`
for 2018 edition book.
2018-10-01 14:35:22 +03:00
Daniel Carosone 2427624731 mention tuple-struct initialisation as functions
Capture the gist and conclusion of
  https://users.rust-lang.org/t/x/20622/9
2018-09-23 10:48:28 +10:00
steveklabnik 105e252de6 update the book with the concept of editions
Fixes #1293
2018-09-21 11:48:08 -04:00
steveklabnik a6dc582edf Mention that the elision rules apply to impl blocks
Fixes #1278
2018-09-21 11:17:11 -04:00
steveklabnik 4a498095f4 talk about main being able to return Result
Fixes #1289
2018-09-21 11:04:06 -04:00
steveklabnik 73e5e73de7 Add clippy to the tools appendix
Fixes #1292
2018-09-21 10:49:54 -04:00
steveklabnik ce9ec37431 Update the book for raw identifiers
Fixes #1281
2018-09-20 17:21:41 -04:00
steveklabnik 64fa350838 updates for non-lexical lifetimes
This isn't very complex, because we don't *really* get into the kinds of issues NLL solves in the book.

Fixes #1274
2018-09-20 13:57:20 -04:00
Steve Klabnik b4809a31c5
Merge pull request #1531 from ozkriff/package_to_project
ch02-00: Replace 'package' with 'collection...' to resolve the ambiguity
2018-09-19 16:46:15 -04:00
Steve Klabnik fa91738b66
Merge pull request #1505 from u32i64/master
Ferris Technology
2018-09-18 16:51:35 -04:00
Artem Varaksa 691cb2fdc6 Ferris no longer appears on code blocks with < 4 lines 2018-09-18 20:07:31 +03:00
Andrey Lesnikov 62b43ad826
ch02-00: Replace 'package' with 'collection...' to resolve the ambiguity 2018-09-18 09:30:10 +03:00
Steve Klabnik 994cbdcc62
Merge pull request #1532 from romusz/proman-18091615-fix-ch20-03-graceful-shutdown-and-cleanup
Fix ch20-03-graceful-shutdown-and-cleanup
2018-09-17 14:32:59 -04:00
Steve Klabnik 0afad3abef
Merge pull request #1530 from mazocomp/patch-1
Don't confuse with String and Result<String>
2018-09-17 11:07:02 -04:00
Steve Klabnik 7bff139e76
Merge pull request #1528 from kraai/patch-7
Fix reference to Listing 9-10
2018-09-17 11:06:42 -04:00
Steve Klabnik a10fe50ccb
Merge pull request #1527 from kraai/patch-6
Remove unnecessary use statement
2018-09-17 11:06:26 -04:00
Steve Klabnik 1fbfc1d55a
Merge pull request #1526 from romusz/proman-18091120-fix-ch20-02-multithreaded
Fix ch20-02-multithreaded chapter
2018-09-17 11:06:04 -04:00
Steve Klabnik 857629a299
Merge pull request #1469 from oberien/patch-1
By default, HashMap does *not* use a cryptographically secure hashing function
2018-09-17 11:03:04 -04:00
Paul Roman 371f7ccdc3 Add missing `>` 2018-09-16 15:06:19 -04:00
Leonid Bobrov 91458583dd
Don't confuse with String and Result<String> 2018-09-12 22:54:39 +03:00
Matt Kraai 689102b69d
Fix reference to Listing 9-10 2018-09-12 06:10:57 -07:00
Matt Kraai 3eb79da2fd
Remove unnecessary use statement 2018-09-12 06:06:48 -07:00
Paul Roman 36139e7d1d Remove unnecessary `dyn` from `Job` type alias 2018-09-11 21:11:03 -04:00
Paul Roman 3d47ef5fb1 Correct invalid `Box<dyn Self>` in explanation of listing 20-21 2018-09-11 21:10:52 -04:00
oberien 9d800ad1f2 Reword "cryptographically strong" SipHash 2018-09-08 14:19:47 +02:00
Steve Klabnik cff0930664
Merge pull request #1497 from momirza/master
Minor rewrite of paragraph describing when to use`Result`
2018-09-07 13:22:01 -04:00
Steve Klabnik 9113828bcd
Merge pull request #1475 from link2xt/patch-2
Replace "exploits" with "vulnerabilities"
2018-09-06 10:16:00 -04:00
Steve Klabnik 59bcff505b
Merge pull request #1490 from mimoo/master
added links to standard documentation
2018-09-05 16:30:54 -04:00
David Wong 331136f805
last fix 2018-09-05 21:06:17 +01:00
David Wong 6c9bf71cb7
second to last fix 2018-09-05 21:05:56 +01:00
David Wong eeda6c542d
and the last fix 2018-09-05 16:59:25 +01:00
David Wong cea24c4fda
one more fix 2018-09-05 16:59:08 +01:00
Steve Klabnik 1c890e4c7a
Merge pull request #1473 from ulidtko/patch-1
Fix misplaced code around "`where` clauses for clearer code" ch10-02
2018-09-05 11:43:54 -04:00
David Wong 30177733e4
relative link2 2018-09-05 16:09:47 +01:00
David Wong 6132299dcd
relative link1 2018-09-05 16:09:36 +01:00
Steve Klabnik 4a54efa489
Merge pull request #1480 from alexreg/raw-identifiers
Added subsection on raw identifiers to appendix on keywords.
2018-09-05 11:01:53 -04:00
Steve Klabnik 78f836e889
Merge pull request #1513 from dralley/add-dictionary
Add 'dictionary' as an alternate name example for HashMap
2018-09-05 10:49:34 -04:00
Steve Klabnik 37dd0a4623
Merge pull request #1511 from jeysal/master
Multithreaded web server: explain unexpected browser behavior
2018-09-05 10:49:14 -04:00
Steve Klabnik 3f584040b4
Merge pull request #1507 from slongfield/patch-1
Update error message in chapter 12-03
2018-09-05 10:48:52 -04:00
Steve Klabnik 2bfc6b428f
Merge pull request #1506 from CrepeGoat/patch-1
Fixed typo: unmatched double quotes
2018-09-05 10:48:14 -04:00
Steve Klabnik 4b48b3addf
Merge pull request #1482 from jianghong/ch09-03-patch
ch09-03/ch11-01: Update  type to be i32 in Guess struct code example
2018-09-05 10:43:26 -04:00
Steve Klabnik be54d05a11
Merge pull request #1479 from jiwonjoung/master
fixed typo
2018-09-05 10:42:15 -04:00
Steve Klabnik ecbe01b3ea
Merge pull request #1476 from bzm3r/master
fixed unnecessary apostrophe in section 19-03
2018-09-05 10:40:52 -04:00
Steve Klabnik 315b938b78
Merge pull request #1471 from dguo/io-prelude
Fix an unused import warning in minigrep
2018-09-05 10:39:45 -04:00
Steve Klabnik ebab8f53b0
Merge pull request #1470 from dguo/patch-1
Fix a typo in ch12-02
2018-09-05 10:38:59 -04:00
Steve Klabnik 3bba8d17bf
Merge pull request #1467 from yasushisakai/master
ch20-02-multithreaded.md listing 20-21: deleting 'dyn' for call_box
2018-09-05 10:38:24 -04:00
Steve Klabnik 223e0e47b5
Merge pull request #1465 from KWierso/literal_underscore
Update 2018-edition/src/ch03-01-variables-and-mutability.md to explain the underscore in '100_000'
2018-09-05 10:37:55 -04:00
Steve Klabnik 309eccb913
Merge pull request #1463 from kaibyao/patch-1
Added commas in chapter 15.2
2018-09-05 10:37:01 -04:00
Steve Klabnik 6e6449b12d
Merge pull request #1439 from frozar/snippet_fix
[SNIPPET] Add some crate 'import' in the beginning of a snippet.
2018-09-05 10:34:34 -04:00
Daniel Alley 06d6b67128 Add 'dictionary' as an alternate name example for HashMap
Python, C#, Julia, and Erlang all use Dict/Dictionary as a name for
HashMap, which makes it common enough to warrant being
listed explicitly.
2018-09-01 22:16:02 -04:00
Mo Mirza 1b28c3e6de
Minor rewrite of `Result` usage paragraph 2018-09-02 00:56:48 +01:00
Tim Seckinger 1ec2585f7e explain unexpected browser behavior 2018-08-30 20:00:50 +02:00
Artem Varaksa 3b87791976 Explain what Ferris means in the Introduction 2018-08-29 11:08:57 +03:00
Artem Varaksa 55ff82d6f1 Do not ignore code which was not ignored 2018-08-29 10:05:33 +03:00
Artem Varaksa 6f95f2c8f3 Add tooltips to Ferris 2018-08-29 10:01:28 +03:00
Artem Varaksa 8ffdca0b2e Ferris: chapters 13, 15, 16, 17, 18 2018-08-29 09:47:20 +03:00
Stephen 26b63ae6cb
Update error message in chapter 12-03
Looks like the error message generated in chapter 12-02 was changed in 5baf2e8, but was not updated in chapter 12-03
2018-08-28 22:00:51 -07:00
Becker A 9d24d7d3c1
Fixed typo: unmatched double quotes 2018-08-28 09:40:07 -04:00
Artem Varaksa 251698361a Ferris: chapters 09, 10, 11 2018-08-28 09:31:43 +03:00
Artem Varaksa f4b68a6250 Fix CI in chapter 08 2018-08-28 08:57:42 +03:00
Artem Varaksa 884b271504 Ferris: chapters 04, 05, 06, 07, 08 2018-08-28 08:44:10 +03:00
Artem Varaksa b384457961 Ferris: chapter 20 2018-08-28 08:01:47 +03:00
Artem Varaksa db44578563 Add `not_desired_behavior` 2018-08-28 08:01:32 +03:00
Artem Varaksa f5c40d2b43 Ferris: chapters 02, 03, 19 2018-08-28 07:07:34 +03:00
Artem Varaksa a69a264c7b Merge upstream 2018-08-28 07:05:24 +03:00
Artem Varaksa 01d8d86ab9 Add Ferris Technology 2018-08-28 07:02:40 +03:00
Mo Mirza 25179b90fd
No buts! 2018-08-22 16:46:50 +01:00
Ralf Jung bad49e7d78 add type ascription for good measure 2018-08-19 18:13:24 +02:00
Ralf Jung f58168f95e fix UB in from_raw_parts_mut example 2018-08-19 18:13:24 +02:00
david da3dc7a4c5 added links to standard documentation 2018-08-16 12:30:39 +01:00
Jackson Hong ccda732bdb Ch11-01: Update same code example to be i32 instead of u32 2018-08-13 19:51:24 -04:00
Jackson Hong d49c05e03f Update type to be i32 in Guess struct code example 2018-08-12 19:59:10 -04:00