about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-05-29trpl: eight sections, not sevenNick Howell-1/+1
2015-05-29Add syntax for multiple lifetimesSteve Klabnik-2/+23
Fixes #25417
2015-05-29Make note about $ more prominent.Steve Klabnik-2/+6
Fixes #25554
2015-05-29Auto merge of #25857 - killercup:patch-14, r=steveklabnikbors-1/+1
Thanks to @cers who reported this in killercup/trpl-ebook#14! r? @steveklabnik
2015-05-29Corrected typo Mathieu David-1/+1
"workd" corrected to "world"
2015-05-28removed lonely closing parenthesisMathieu David-1/+1
There was no opening parenthesis for this closing parenthesis...
2015-05-28Auto merge of #25835 - steveklabnik:gh25438, r=alexcrichtonbors-2/+2
Fixes #25438
2015-05-28TRPL: Fix Unescaped URLPascal Hertleif-1/+1
2015-05-28Auto merge of #25849 - reinh:patch-1, r=huonwbors-1/+1
Thanks for the awesome book! r? @steveklabnik
2015-05-28Auto merge of #25843 - shepmaster:remove-public-int-and-uint, r=huonwbors-3/+3
2015-05-27TRPL: fix typo, borow for borrowRein Henrichs-1/+1
2015-05-27Remove mentions of int / uint from public documentationJake Goulding-3/+3
2015-05-27Small wording fix in TRPL: lifetimesSteve Klabnik-2/+2
Fixes #25438
2015-05-27Auto merge of #25713 - Stebalien:pattern, r=alexcrichtonbors-1/+1
Needed to support: ```rust match X { pattern if Y ... } for pattern in Y {} ``` IMO, this shouldn't require an RFC because it can't interfere with any future language changes (because `pattern if` and `pattern in` are already legal in rust) and can't cause any ambiguity.
2015-05-25Add a missing space to the Glossary page of TRPLMax Jacobson-1/+1
r? @steveklabnik
2015-05-25Auto merge of #25771 - killercup:trpl/cleanup-markdown-links, r=steveklabnikbors-14/+14
In all other places the IDs of link references are without spaces (and explicitly set). These are just some cleanups I did for the PDF version. r? @steveklabnik
2015-05-25Auto merge of #25742 - thombles:tk/StringCoercion, r=steveklabnikbors-0/+15
A few of us [over on the forum](https://users.rust-lang.org/t/string-type-coercion-in-rust/1439) have been tripped up by this distinction, which I don't think is mentioned. It's kind of logical if you read the "Deref coercions" page and squint a bit but I think it would be nice to explain it directly. Here's one way we could clarify it.
2015-05-25TRPL: Clean up some Markdown linksPascal Hertleif-14/+14
In all other places the IDs of link references are without spaces (and explicitly set).
2015-05-25book: add no_run and use statement to strings no-coercion exampleThomas Karpiniec-1/+3
2015-05-24Fix typo in diagram demonstrating stack vs. heap valuesAlex Stokes-1/+1
2015-05-24Auto merge of #25464 - zaeleus:trpl-riol, r=pnkfelixbors-30/+30
r? @steveklabnik
2015-05-24book: explanation that String -> &str coercion doesn't happen for &str traitsThomas Karpiniec-0/+13
2015-05-23Rollup merge of #25715 - nero-luci:patch-1, r=steveklabnikOliver Schneider-1/+1
I consider that this version has a better reading fluency, instead of having a period between clauses
2015-05-23Rollup merge of #25681 - steveklabnik:gender, r=nmatsakisOliver Schneider-42/+44
Also, when checking for common gendered words elsewhere, I found one 'he', moved to 'they' as well. https://github.com/rust-lang/rust/pull/25640#issuecomment-104304643
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-22Allow patterns to be followed by if and in.Steven Allen-1/+1
Needed to support: match X { pattern if Y ... } for pattern in Y {}
2015-05-21Auto merge of #25669 - GuillaumeGomez:typo-fix, r=Manishearthbors-1/+1
r? @steveklabnik
2015-05-21Replace "more later" by "later"Guillaume Gomez-1/+1
2015-05-21Auto merge of #25601 - ericye16:master, r=steveklabnikbors-3/+3
2015-05-21she -> they in Dining PhilosophersSteve Klabnik-42/+44
Also, when checking for common gendered words elsewhere, I found one 'he', moved to 'they' as well. https://github.com/rust-lang/rust/pull/25640#issuecomment-104304643
2015-05-21Introduction vector example elements counting fixdmgawel-2/+2
Earlier created vector `["Hello", "world"]` has two elements and we try to add a third element.
2015-05-21Rollup merge of #25665 - OlegTsyba:fix_documentation, r=GankroManish Goregaokar-1/+1
fix a small typo in the official tutorial. "coerce" instead of "coerece" r? @steveklabnik
2015-05-21Rollup merge of #25661 - Stebalien:macro, r=GankroManish Goregaokar-3/+3
They don't have to be followed by anything.
2015-05-21Fix the typo in The Rust Programming Language book, 5.18. StringsOlegTsyba-1/+1
2015-05-20Change "must" to "may only" in macro future proofing rules.Steven Allen-3/+3
They don't have to be followed by anything.
2015-05-20trpl: Remove tailing semicolon of an inner attributeIven Hsu-1/+1
The syntax with tailing semicolon is deprecated and the compiler will complain about it.
2015-05-19Rollup merge of #25607 - peferron:doc-macros-assert-fix, r=steveklabnikSteve Klabnik-3/+3
"Truth passes, success `panic!`s" seems to be a typo. The closest fix would be something like "Success passes, failure `panic!`s" but to me a "comparison failure" suggests that we couldn't compare the two values at all, not that we could successfully compare them and that the result was non-equality. So I opted to rewrite the paragraph a bit. If there's a better alternative please let me know. r? @steveklabnik
2015-05-19Rollup merge of #25604 - skeuomorf:docs-lifetime, r=steveklabnikSteve Klabnik-1/+1
r? @steveklabnik
2015-05-19Change default gender in the dining philosophers projectErik Michaels-Ober-8/+8
The paper from which this example was taken made the mistake of assuming that all five philosophers are men. This is a hypothetical example--there are no actual philosophers eating spaghetti--so there is no good reason to make this assumption. Since women make up about half of the human population, all things being equal, women should represent about half of the philosophers. However, because this mistake has stood since 1985, I have changed *all* of the pronouns to be female, to make up for lost time. If someone would like to revert this patch or switch to neutral pronouns after 30 years, feel free to set your alarm clock for 2045.
2015-05-19Fix description of assert!peferron-3/+3
2015-05-19Rollup merge of #25580 - killercup:trpl/unify-code-blocks, r=steveklabnikManish Goregaokar-106/+107
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.) This only adds the language marker to "first level" code blocks (and not to code blocks in comments inside of code examples). r? @steveklabnik
2015-05-19Rollup merge of #25575 - clatour:patch-2, r=steveklabnikManish Goregaokar-1/+1
Looks like this was an issue in the source material. I've let the editor know and he has told me he is correcting it there as well. r? @steveklabnik
2015-05-19Rollup merge of #25512 - peferron:doc-traits-error-fix, r=alexcrichtonManish Goregaokar-5/+6
The source code snippet uses `"whatever".as_bytes()` but the compilation error message uses `b"whatever"`. Both should be consistent with each other. r? @steveklabnik
2015-05-19Rollup merge of #25452 - jimblandy:master, r=steveklabnikManish Goregaokar-3/+3
Minor tweak: the text explaining the Borrow trait talks about slices, but the example immediately following just uses a simple reference; there are no slices involved. r? @steveklabnik
2015-05-19Fix lifetimes trpl typoMohammed Attia-1/+1
2015-05-19fix footnote linkEric Ye-3/+3
2015-05-18TRPL: Normalize rust Code Block MarkersPascal Hertleif-35/+35
`{rust,ignore}` -> `rust,ignore
2015-05-18TRPL: Add `rust` Marker to Some Code BlockPascal Hertleif-71/+72
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-18trpl: Proofread "Rust Inside Other Languages"Michael Macias-30/+30
2015-05-18trpl: Dining philosophers backstory typoclatour-1/+1
Minor typo/grammar error.