summary refs log tree commit diff
path: root/src/doc/trpl/iterators.md
AgeCommit message (Collapse)AuthorLines
2015-06-12Remove unstable feature from TRPL: iteratorsSteve Klabnik-6/+5
Fixes #25499
2015-06-01trpl: Use infinite iterator in chain example with takePaul Oliver-1/+1
2015-05-31Update iterators.mdSteve Gury-2/+2
Fix the actual off by one
2015-05-31Fix off by one in the iterator documentationSteve Gury-1/+1
`(1..100).map(|x| x + 1)` is actually mapping [1,100) to [2,101)
2015-05-18TRPL: Normalize rust Code Block MarkersPascal Hertleif-3/+3
`{rust,ignore}` -> `rust,ignore
2015-05-13Fix automatic substitution of task->thread.David Reid-1/+1
2015-05-12book: typo fixes, wording improvements.Shmuale Mark-3/+3
The text in iterators.md wasn't wrong, but it read awkwardly to my ear.
2015-05-09Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-1/+1
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-04-30Fix code sample, remove unstable codeSteve Klabnik-13/+2
Fixes #24977
2015-04-02doc/trpl: Fixing a comma splice in iterators.md.Liam Monahan-1/+1
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-6/+7
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+2
2015-02-22Fixed erroneous statements in iterators.md.Alexander Bliskovsky-8/+5
2015-02-22Switch to &vector notation in the iterators chapter.Alexander Bliskovsky-13/+16
2015-02-16Remove use of range() in iterator docs.Steve Klabnik-43/+41
Fixes #21577.
2015-02-15Rollup merge of #22293 - steveklabnik:gh12891, r=brsonManish Goregaokar-1/+10
Fixes #12891.
2015-02-13Mention type placeholders in the book.Steve Klabnik-1/+10
Fixes #12891.
2015-02-12Updated documentation to use range notation syntax.Nick Sarten-17/+17
Replaced outdated use of the `range(start, end)` function where approriate with `start..end`, and tweaked the examples to compile and run with the latest rust. I also fixed two periphery compile issues in reference.md which were occluding whether there were any new errors created by these changes, so I fixed them.
2015-01-17doc: Remove extra whitespace in the middle of lines to provide alignmentNick Howell-1/+1
"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-17Intpocalypse, book edition.Steve Klabnik-37/+37
Fix all usage of int/uint/i/u in the book.
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-11/+11
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/+339