about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-01-18fix formattingJay True-0/+1
2015-01-18Remove redundant "Right now"Kim Røen-3/+2
Having both "Right now" and "at the moment" in the same statement is redundant.
2015-01-18fix an error about the static lifetimeJay True-1/+1
The reference should be `x`, not `FOO` itself.
2015-01-17Fix more rollup problemsSteve Klabnik-0/+1
2015-01-17docs: grammar fixAlfie John-1/+1
2015-01-17doc: Remove extra whitespace in the middle of lines to provide alignmentNick Howell-70/+70
"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-17Add C -> Rust example to FFI chapter of the book.Steve Klabnik-28/+46
Fixes #10489.
2015-01-17Fix up titles of TRPL chaptersSteve Klabnik-10/+10
2015-01-17Fix typo.Ms2ger-1/+1
2015-01-17Intpocalypse, book edition.Steve Klabnik-185/+187
Fix all usage of int/uint/i/u in the book.
2015-01-17Evaluate # fn in docsSteve Klabnik-35/+47
I searched for times when we were hiding functions with # in the documentation, and fixed them to not use it unless neccesary. I also made random improvements whenever I changed something. For example, I changed Example to Examples, for consistency. Fixes #13423
2015-01-17Remove segmented stack info from the FFI chapter of the book.Steve Klabnik-23/+0
Fixes #20071.
2015-01-17Remove unnecessary explicit conversions to *const Twe-1/+1
2015-01-16syntax: Feature gate #[start] and #[main]Alex Crichton-4/+4
These two attributes are used to change the entry point into a Rust program, but for now they're being put behind feature gates until we have a chance to think about them a little more. The #[start] attribute specifically may have its signature changed. This is a breaking change to due the usage of these attributes generating errors by default now. If your crate is using these attributes, add this to your crate root: #![feature(start)] // if you're using the #[start] attribute #![feature(main)] // if you're using the #[main] attribute cc #20064
2015-01-16Merge pull request #21214 from sleepynate/spacing-in-bookbors-3/+3
Fix commented graphs in src/doc/trpl/ownership.md Reviewed-by: huonw
2015-01-15Fix commented graphs in src/doc/trpl/ownership.mdnathan dotz-3/+3
2015-01-15rollup merge of #21206: steveklabnik/expressionsAlex Crichton-0/+18
Suggested here: http://stackoverflow.com/a/27962076/24817
2015-01-15rollup merge of #21148: bombless/patch-1Alex Crichton-1/+1
2015-01-15rollup merge of #21141: tcard/masterAlex Crichton-1/+1
Really small correction. This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information. This makes it fail for the expected reason.
2015-01-15rollup merge of #21109: steveklabnik/gh17224Alex Crichton-3/+76
Fixes #17224
2015-01-15rollup merge of #21105: csouth3/kill-box-importAlex Crichton-13/+0
Closes #21093. r? @steveklabnik cc @alexcrichton I tested with `make check-docs` and this passes that. Hope that was enough.
2015-01-15rollup merge of #21040: steveklabnik/gh20037Alex Crichton-1/+1
Fixes #20037.
2015-01-15rollup merge of #21038: steveklabnik/gh20471Alex Crichton-1/+2
Fixes #20471.
2015-01-15rollup merge of #21031: steveklabnik/gh19067Alex Crichton-5/+4
Fixes #19067
2015-01-15rollup merge of #21029: steveklabnik/gh19924Alex Crichton-4/+20
Fixes #19924
2015-01-15rollup merge of #21023: steveklabnik/gh20840Alex Crichton-19/+1
Fixes #20840
2015-01-15rollup merge of #21015: steveklabnik/gh20852Alex Crichton-3/+3
Fixes #20852
2015-01-15rollup merge of #21013: steveklabnik/gh20914Alex Crichton-1/+1
Fixes #20914
2015-01-15rollup merge of #21011: steveklabnik/gh20993Alex Crichton-2/+2
Fixes #20993
2015-01-15rollup merge of #21001: camjackson/masterAlex Crichton-8/+1
With the code samples as they are, the compiler says: `feature has been added to Rust, directive not necessary`
2015-01-15rollup merge of #20988: ciphergoth/task-to-threadAlex Crichton-14/+13
"Tasks" are no longer a thing in Rust; refer to threads instead. Work is still needed on [threads.md](threads.md).
2015-01-15rollup merge of #20986: alkor/doc-fixesAlex Crichton-3/+12
Corrections in TRPL macros guide
2015-01-15rollup merge of #20929: laurilehmijoki/masterAlex Crichton-1/+1
The sentence is easier to read once we move the word "again" away from the last position.
2015-01-15rollup merge of #20892: CarVac/masterAlex Crichton-39/+39
`uint` was recently deprecated, so in following the use of `i32` in the first parts, replace all copies of `uint` with `u32`.
2015-01-15Clarify function return style.Steve Klabnik-0/+18
Suggested here: http://stackoverflow.com/a/27962076/24817
2015-01-15fix wrong linkYork Xiang-1/+1
2015-01-14TRPL: Anti-example failing for the wrong reason.Toni Cárdenas-1/+1
Really small correction. This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information. This makes it fail for the expected reason.
2015-01-13Provide example of generic inverse()Steve Klabnik-3/+76
Fixes #17224
2015-01-13Remove unneeded box import in examplesChase Southwood-17/+0
2015-01-13Replace usage of deriving with derive in docsGreg Chapple-1/+1
2015-01-13Expand the section on closures in TRPL.JONNALAGADDA Srinivas-8/+35
* Include an illustration of a function that accepts two closures.
2015-01-12Match prose with code when discussing Ordering valuesAdam Roben-1/+1
Now both the enum values and the prose describing them mention the values in the same order.
2015-01-12Don't use 'synonym' with regards to newtypesSteve Klabnik-1/+1
Fixes #20037.
2015-01-12Elaborate on destructuring letSteve Klabnik-1/+2
Fixes #20471.
2015-01-12Improve the ownership guide a tadSteve Klabnik-4/+20
Fixes #19924
2015-01-12Improve clarity of paragraph in the pointer guideSteve Klabnik-5/+4
Fixes #19067
2015-01-12Ease parsing of an English sentenceLauri Lehmijoki-1/+1
2015-01-12Clean up wording around uninitialized values.Steve Klabnik-19/+1
Fixes #20840
2015-01-12Link to sections in the book's README.mdSteve Klabnik-3/+3
Fixes #20852
2015-01-12Small fix in the bookSteve Klabnik-1/+1
Fixes #20914