about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-05-17Use byte string literal syntaxpeferron-5/+6
The byte string literal syntax `b"whatever"` is more idiomatic than `"whatever".as_bytes()`.
2015-05-18Rollup merge of #25530 - peferron:doc-closures-whitespace-fix, r=alexcrichtonManish Goregaokar-6/+6
Tiny fixes collected while reading through the Rust book. If they're too nitpicky please let me know and I'll ignore the next ones. :) The spaces after the function and closure arguments might be intentional, but they do not make much sense: the usual formatting doesn't have such spaces, and they aren't helping align the three lines together either. r? @steveklabnik (as suggested by [CONTRIBUTING.md](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md))
2015-05-18Rollup merge of #25526 - chellmuth:patch-1, r=alexcrichtonManish Goregaokar-1/+1
2015-05-17Fix doc whitespace issuespeferron-6/+6
2015-05-17Fix typo in references-and-borrowing docsChris Hellmuth-1/+1
2015-05-17Rollup merge of #25506 - Wilfred:master, r=alexcrichtonManish Goregaokar-2/+2
Newcomers to Rust need to learn the distinctinion between `&str` and `String`, so additonally having `string` in an example risks confusion.
2015-05-17Rollup merge of #25493 - coffeejunk:update_installed_rust_version, ↵Manish Goregaokar-3/+3
r=alexcrichton Rust is out of beta :tada: r? @steveklabnik
2015-05-17Rollup merge of #25490 - huachaohuang:patch-1, r=alexcrichtonManish Goregaokar-1/+1
2015-05-17Rollup merge of #25472 - WillEngler:book-tiny-typo-fixes, r=alexcrichtonManish Goregaokar-2/+2
This PR fixes two little typos in the Dining Philosophers example. Also, there are two style points that may have been oversights but may have been deliberate, so I'll just bring them up here: 1) In the last paragraph, you say > You’ll notice we can introduce a new binding to `table` here, and it will shadow the old one. This is often used so that you don’t need to come up with two unique names. You already said something similar to this in the Guessing Game, but maybe you intended for this example to be independent of that one. 2) In "Rust Inside Other Languages," you introduce the idea of the "global interpreter lock" and then refer to it as the GIL a few paragraphs later without explicitly stating that GIL == global interpreter lock. It's reasonable to expect readers to make the connection, but maybe that's not what you intended. Excellent work on the examples! Congrats on 1.0! r? @steveklabnik
2015-05-16Make error message consistent with source codepeferron-2/+2
The source code uses `"whatever".as_bytes()`, not `b"whatever"`.
2015-05-16Avoid calling a variable 'string' when discussing strings.Wilfred Hughes-2/+2
Newcomers to Rust need to learn the distinctinion between `&str` and `String`, so additonally having `string` in an example risks confusion.
2015-05-16Auto merge of #25463 - jeremyschlatter:master, r=alexcrichtonbors-1/+1
2015-05-16Update windows install links to 1.0Maximilian Haack-2/+2
Fixes #25489
2015-05-16Update the shown installed rust version to 1.0Maximilian Haack-1/+1
:tada: :tada: :tada:
2015-05-16Update rust-inside-other-languages.mdHuachao Huang-1/+1
2015-05-16Auto merge of #25450 - dnaeon:docs, r=alexcrichtonbors-1/+1
2015-05-16Auto merge of #25440 - durka:patch-3, r=alexcrichtonbors-1/+1
The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`.
2015-05-15Correct two small typos in the Dining Philosophers example.Will Engler-2/+2
2015-05-15Fix quotation mark in ruby example.Jeremy Schlatter-1/+1
2015-05-15Auto merge of #25432 - killercup:patch-12, r=steveklabnikbors-3/+1
`[let]` was already defined in line 11. Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown. r? @steveklabnik
2015-05-15Auto merge of #25437 - MazinZ1:master, r=alexcrichtonbors-2/+2
The download links of Windows installers on the Nightly Rust page are using beta builds instead of nightly builds, which caused some confusions when I was setting up my env. Probably it's better to use the links of nightly builds here.
2015-05-15Make description of Borrow trait uses match the example.Jim Blandy-3/+3
2015-05-15docs: Typo fixMarin Atanasov Nikolov-1/+1
2015-05-15trpl: change from "int" to "i32" in TraitsAlex Burka-1/+1
The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`.
2015-05-15Fix download links of Nightly Windows installersZ1-2/+2
The download links of Windows installers on the Nightly Rust page are using beta builds instead of nightly builds, which caused some confusions when I was setting up my env. Probably it's better to use the links of nightly builds here.
2015-05-15Auto merge of #25402 - parir:master, r=Manishearthbors-7/+7
r? @steveklabnik
2015-05-15TRPL: Fix Inline Code TypographyPascal Hertleif-1/+1
2015-05-15TRPL: Remove Duplicate ReferencePascal Hertleif-2/+0
Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown.
2015-05-155 != 4parir-1/+1
Closes #25430
2015-05-14Rollup merge of #25420 - habnabit:master, r=steveklabnikSteve Klabnik-3/+0
It seems to refer to something that used to exist, but got moved, and then not everything got cleaned up.
2015-05-14Rollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnikSteve Klabnik-0/+3
2015-05-14Rollup merge of #25413 - killercup:patch-11, r=alexcrichtonSteve Klabnik-2/+2
r? @steveklabnik
2015-05-14Rollup merge of #25410 - durka:patch-2, r=steveklabnikSteve Klabnik-1/+4
2015-05-14Rollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, ↵Steve Klabnik-3/+3
r=steveklabnik I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables so they display properly in html pages.
2015-05-14Rollup merge of #25407 - durka:patch-1, r=alexcrichtonSteve Klabnik-3/+3
2015-05-14Rollup merge of #25405 - dreid:patch-3, r=nikomatsakisSteve Klabnik-1/+1
2015-05-14Rollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnikSteve Klabnik-1/+1
This PR fixes a comment in the `while Loops` section of the Rust book with the correct type of a variable binding.
2015-05-14Remove an almost-duplicated sentence.Aaron Gallagher-3/+0
It seems to refer to something that used to exist, but got moved, and then not everything got cleaned up.
2015-05-15trpl: Fix missing internal linksleunggamciu-0/+3
2015-05-14TRPL: Fix Internal LinkPascal Hertleif-2/+2
2015-05-14trpl: punctuation fix in PatternsAlex Burka-2/+2
2015-05-14trpl: fix link from Match to If LetAlex Burka-1/+1
2015-05-14trpl: fix link from Enums to TraitsAlex Burka-0/+1
2015-05-14trpl: fix link from Structs to TraitsAlex Burka-0/+2
2015-05-14I fixed the typo of the value of e in the memory tables. It is a reference ↵Paul Faria-26/+26
to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables.
2015-05-14trpl: punctuation fixAlex Burka-1/+1
2015-05-14Another thread->task fix.David Reid-1/+1
2015-05-14trpl-docs: Specify correct type of variable bindingMarin Atanasov Nikolov-1/+1
2015-05-14Rollup merge of #25397 - dreid:patch-2, r=alexcrichtonManish Goregaokar-1/+1
2015-05-14Add some missing links.parir-0/+3