about summary refs log tree commit diff
path: root/src/doc/trpl/guessing-game.md
AgeCommit message (Collapse)AuthorLines
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-986/+0
The book was located under 'src/doc/trpl' because originally, it was going to be hosted under that URL. Late in the game, before 1.0, we decided that /book was a better one, so we changed the output, but not the input. This causes confusion for no good reason. So we'll change the source directory to look like the output directory, like for every other thing in src/doc.
2015-11-05Remove .ok().expect()Steve Klabnik-49/+27
in favor of just expect() Fixes #29506
2015-09-30Elaborate on the io prelude in the bookSteve Klabnik-1/+4
Fixes #27917
2015-09-17Clarify where let accepts a pattern, spatiallyColin Wallace-1/+1
2015-09-06Small syntax and formatting changesJack Wilson-3/+3
2015-08-05work -> compile in Guessing GameSteve Klabnik-2/+2
'work' can refer to the game itself, ie, 'this compiles but the game isn't finished,' so 'compile' is a more clear way to describe the problem. Thanks jhun on irc
2015-08-04Rollup merge of #27397 - Dangthrimble:master, r=steveklabnikManish Goregaokar-2/+2
Clarifications for those new to Rust and Cargo: * It's a good idea to get rid of the original `main.exe` in project root * Slight clarification on the use of `main.rs` vs `lib.rs` * Clarify that the TOML file needs to be in project root
2015-07-30By defaultJonathan Hansford-2/+2
Guessing Game states that "Rust only imports a few things into every program, the ‘prelude’". That isn't strictly true. That is all it imports by default and the change clarifies that point.
2015-07-28more precise for inclusive rangekrumelmonster-1/+1
2015-07-08TRPL: make version constraits explicitSteve Klabnik-3/+5
We weren't explicit enough about Cargo's default version behavior. For rust-lang/rust at least, Fixes #26482
2015-05-31trpl:add missing commaFuGangqiang-2/+2
2015-05-22Update guessing-game.mdCornel Punga-1/+1
I consider that this version has a better reading fluency, instead of having a period between clauses
2015-05-21Replace "more later" by "later"Guillaume Gomez-1/+1
2015-05-18TRPL: Add `rust` Marker to Some Code BlockPascal Hertleif-1/+1
This adds strictly more information to the source files and reduces the need for customized tooling to render the book. (While this should not change the output of _rustbook_, it is very useful when rendering the sources with external tools like Pandoc.)
2015-05-15Auto merge of #25402 - parir:master, r=Manishearthbors-6/+6
r? @steveklabnik
2015-05-14TRPL: Fix Internal LinkPascal Hertleif-2/+2
2015-05-14Fix version numbers in the guessing game.parir-6/+6
2015-05-11Rollup merge of #25284 - petehunt:patch-1, r=steveklabnikManish Goregaokar-1/+1
Noticed this while perusing the docs
2015-05-10Fix typo in guessing-game docsPete Hunt-1/+1
2015-05-10Rollup merge of #25263 - fhinkel:master, r=steveklabnikSteve Klabnik-2/+2
2015-05-10Fix small typos in documentationFranziska Hinkelmann-2/+2
2015-05-09Minor docs fixRob Young-2/+4
Remove an rogue 'is' and fix some line wrapping.
2015-05-07Undid changes involving misunderstanding of 0.3.x Ben Gesoff-10/+11
Didn't realise 0.3.0 referred to all 0.3.x versions! Fixed my mistakes. Should have just updated the Cargo.toml now.
2015-05-07Refactor to keep rand version 0.3.0Ben Gesoff-17/+15
changed paragraphs with discussion of Cargo.lock file to agree with rand version 0.3.0 in the Cargo.tom file.
2015-05-07Change rand version to '*'Ben Gesoff-1/+1
Following paragraph says "we've used `*` which..." but code says "rand=\"0.3.0\""
2015-05-07Rollup merge of #25173 - andreastt:guessing_game_syntax_fix, r=steveklabnikSteve Klabnik-1/+1
2015-05-07Rollup merge of #25156 - rydotyosh:patch-4, r=alexcrichtonSteve Klabnik-2/+0
Remove printing of secret number at final source.
2015-05-07Rollup merge of #25154 - rydotyosh:patch-3, r=steveklabnikSteve Klabnik-1/+1
Edit version of #25150. This commit depends on #25148.
2015-05-07Rollup merge of #25148 - banks:master, r=steveklabnikSteve Klabnik-3/+3
Let me know if I didn't follow correct procedure - seems a trivial change and no one that can be automatically tested.
2015-05-07doc: fix syntax error in Guessing GameAndreas Tolfsen-1/+1
2015-05-07doc: Fix remove secret number at final sourceらいどっと-2/+0
Remove printing of secret number at final source.
2015-05-07doc: Fix remove unused variableらいどっと-1/+1
This commit depends on #25148.
2015-05-06Correct initial guessing game example. Fixes #25147. r? @steveklabnikPaul Banks-3/+3
2015-05-06Fix explanation of Cargo's behaviorSteve Klabnik-8/+13
https://github.com/rust-lang/rust/pull/25080/files#r29634986
2015-05-05TRPL: guessing gameSteve Klabnik-0/+999
This also made me realize that I wasn't using the correct term, 'associated functions', rather than 'static methods'. So I corrected that in the method syntax chapter.
2015-03-19Remove the Guessing Game from the bookSteve Klabnik-893/+0
Fixes #22518
2015-02-28Changed wording to use Result instead of Option in several places, fixed ↵David Mally-9/+9
example that actually does use an Option
2015-02-19docs: correct guessing game to mention old_io module instead of ioSteven Crockett-1/+1
The text is referring to the io module despite the code using the old_io module.
2015-02-12Updated usage of StrExt.parse() as per a recommendation by edwardw.Nick Sarten-23/+23
2015-01-30std: Stabilize FromStr and parseAlex Crichton-11/+13
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-26Fallout of io => old_ioAlex Crichton-27/+27
2015-01-17doc: Remove extra whitespace in the middle of lines to provide alignmentNick Howell-26/+26
"Idiomatic code should not use extra whitespace in the middle of a line to provide alignment." http://aturon.github.io/style/whitespace.html I realize the linked page still needs an RFC, but the docs should be written in accordance with the guidelines nevertheless.
2015-01-11Replace uint with u32 in trpl/guessing-game.mdCarVac-39/+39
uint was recently deprecated, so in following the use of i32 at first, replace all references to uint with u32. Also change literals from e.g. 100u to 100, so that they are no longer usize.
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-4/+4
This commit is an attempt to standardize the use of punctuation and formatting in "The Rust Programming Language" as discussed in #19823. - Convert bold text to italicized textcwhen referring to terminology. - Convert single-quoted text to italicized or double-quoted text, depending on context. - Use double quotes only in the case of scare quotes or quotations.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-0/+891