about summary refs log tree commit diff
path: root/src/doc/trpl/generics.md
AgeCommit message (Collapse)AuthorLines
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-144/+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-09-05Small formatting/syntax tweaksJack Wilson-3/+3
2015-07-30Copyedit generics.md and traits.mdLeif Arne Storset-2/+2
Squashed at reviewer's request: Add heading at the end of the introductory material Spice up introductory paragraphs a bit Use quotes instead of <code> for phrase Remove "other" in "other restrictions" (it's not obvious that any other restrictions have been mentioned) "Default methods" is a second-level heading, but is not a subsection of "Where clause" Reword "Default methods" introduction: it's not the "last feature" on this page
2015-07-30Show impl<T>Leif Arne Storset-5/+25
This includes a new example with Rectangle, instead of reusing HasArea, because fn area would require the Mul trait, and the added complexity of that would be better left for the Operators and Overloading chapter. Squashed at reviewer's request: Move teaser for trait bounds to bottom
2015-06-08book: remove a sentence that is not clearTshepang Lekhonkhobe-2/+2
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-04-20TRPL edits: genericsSteve Klabnik-40/+72
2015-04-20Remove inverse example from generics part of TRPLSteve Klabnik-85/+0
Fixes #24325.
2015-01-20Small fix in TRPL 3.9Steve Klabnik-3/+3
Multiple people have asked me if this is a reference to Hacker News, and I _certainly_ don't want to give them that impression.
2015-01-17Intpocalypse, book edition.Steve Klabnik-10/+10
Fix all usage of int/uint/i/u in the book.
2015-01-13Provide example of generic inverse()Steve Klabnik-3/+3
Fixes #17224
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/+177