about summary refs log tree commit diff
path: root/src/doc/trpl/method-syntax.md
AgeCommit message (Collapse)AuthorLines
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-259/+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-04Mention multiple impl blocks in TRPLSteve Klabnik-2/+29
Fixes #29322
2015-10-19Clean whitespaceCarlos Liam-1/+1
Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines
2015-09-03Capitalize circle referenceJack Wilson-1/+1
2015-09-03Fixes minor formatting inconsistenciesJack Wilson-8/+8
2015-06-09Fix some copyediting in TRPL: method-syntaxSteve Klabnik-2/+2
As this example got changed, we stopped showing how to return self as the first example, so this text is outdated. Fixes #25803
2015-05-28removed lonely closing parenthesisMathieu David-1/+1
There was no opening parenthesis for this closing parenthesis...
2015-05-18TRPL: Add `rust` Marker to Some Code BlockPascal Hertleif-3/+3
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-15docs: Typo fixMarin Atanasov Nikolov-1/+1
2015-05-11static method -> associated functionSteve Klabnik-4/+4
2015-05-09Auto merge of #25214 - acgtyrant:patch-1, r=brsonbors-1/+1
make the definition of static methods explicit
2015-05-08Update method-syntax.mdIsaac Ge-1/+1
Fix wrong radius valve from 0.0 to 1.0 as above
2015-05-08Update method-syntax.mdIsaac Ge-1/+1
make the definition of static methods explicit
2015-05-05TRPL: guessing gameSteve Klabnik-3/+4
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-04-24TRPL: deref coercionsSteve Klabnik-4/+4
2015-04-20TRPL edits: method syntaxSteve Klabnik-36/+35
2015-04-11book: 'x' is already taken, so use something elseTshepang Lekhonkhobe-4/+4
2015-04-03Fixing copy/paste typo.Alex Quach-1/+1
2015-03-31book: make Builder Pattern example more completeTshepang Lekhonkhobe-8/+16
2015-03-30book: improve a bit of grammar in Method Syntax chapeterTshepang Lekhonkhobe-3/+3
2015-03-28Rollup merge of #23788 - steveklabnik:gh23748, r=alexcrichtonManish Goregaokar-1/+2
Fixes #23748
2015-03-28Rollup merge of #23751 - tshepang:do-not-hardcode-the-growth, r=ManishearthManish Goregaokar-4/+4
I found the arbitrary `10` surprising. A better method name, in such a case, would be `grow_by_10` :)
2015-03-27Explain why &self is commonSteve Klabnik-1/+2
Fixes #23748
2015-03-26book: let grow() accept the growth parameterTshepang Lekhonkhobe-4/+4
2015-03-26book: make it one sentenceTshepang Lekhonkhobe-1/+1
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+3
2015-03-15Strip trailing whitespaceTamir Duberstein-3/+3
2015-03-14Fix indentation in the "Method Syntax" chapterEduardo Bautista-4/+4
2015-03-09Fix doctest (fixup #23188)Manish Goregaokar-0/+1
2015-03-08Add examples of all three syntaxes in method syntax chapter of trplSteve Klabnik-1/+22
Fixes #18787
2015-02-14Minor change in 'method-syntax' chaptercaipre-2/+2
2015-01-23Soup up 'method syntax' chapter of the BookSteve Klabnik-2/+112
Fixes #16969
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/+88