summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorLines
2013-07-02doc: Update links to 0.7 release-0.7 0.7Brian Anderson-5/+5
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-2/+2
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-9/+9
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28add a tutorial on containers and iteratorsDaniel Micay-126/+208
2013-06-27rustpkg: Update manualTim Chevalier-0/+10
2013-06-28Convert vec::{push, push_all, push_all_move} to methods.Huon Wilson-1/+1
2013-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-4/+4
Finally rename finalize to drop. Closes #4332.
2013-06-25Change finalize -> drop.Luqman Aden-4/+4
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-13/+44
2013-06-22auto merge of #7274 : thestinger/rust/size_hint, r=huonwbors-7/+7
I ran into a weird lifetime bug blocking updating the `collect` method to use `FromIterator`, but everything here works fine.
2013-06-23vec: remove BaseIter implementationDaniel Micay-7/+7
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22auto merge of #7204 : alexcrichton/rust/deriving-to-string, r=pcwaltonbors-1/+3
Closes #7180 and #7179. Before, the `deriving(ToStr)` attribute was essentially `fmt!("%?")`. This changes it to recursively invoke `to_str()` on fields instead of relying on `fmt!`-style things. This seems more natural to me and what should actually be expected.
2013-06-22Merge pull request #7270 from thestinger/docDaniel Micay-16/+32
accumulated doc pull requests from the queue
2013-06-22Expand the deriving(ToStr) implementationAlex Crichton-1/+3
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-1/+1
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-21Usable instructions for generating docs from sourceRalph Bodenner-6/+21
2013-06-21Minor doc updates to reflect #[deriving(Zero)], and small release notes ↵Huon Wilson-1/+2
adjustments. The `extra::fileinput` module landed just after 0.6 was released, and there are many more derivable traits.
2013-06-21fix text of tutorialsJoris Rehm-9/+9
2013-06-16auto merge of #7184 : smvv/rust/doc_css, r=brsonbors-12/+9
After reading issue #7077, all header elements had a border. In my opinion those borders are a bit too much distraction. I tried a different approach with increasing the padding and font size, and omitting the borders. Comparison: http://smvv.io/rust-doc/std/hashmap.html http://static.rust-lang.org/doc/std/hashmap.html Note: the highlighted code blocks are not caused by this commit. I left the border of the code block / function signature as is. The reason behind that is that code blocks are really block elements, while headers are not. What do you guys think?
2013-06-16Correct docsNiko Matsakis-1/+1
2013-06-16Correct tutorial testsNiko Matsakis-3/+5
2013-06-16Remove h[123] border and increase their padding to better readabilitySander Mathijs van Veen-12/+9
2013-06-16fix benchmark and the tutorialsDaniel Micay-8/+3
2013-06-14rm MutableIterDaniel Micay-1/+1
replaced with mutable implementations of Iterator
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-12auto merge of #7077 : SiegeLord/rust/new_css, r=pnkfelixbors-23/+73
I was making documentation for my own little Rust project, and I was somewhat unhappy with how the documentation looked. While many of the issues are endemic to how rustdoc generates its output, you can get pretty far in making the documentation readable by using a better CSS style. This commit alters the CSS style used in Rust's documentation in order to make the various sections stand out more. You can see an example of its usage in my own project's documentation: http://siegelord.github.io/RustGnuplot/#implementation-for-figureself-where-self. I showed it to some people on IRC and they suggested that I make a pull request here. I tested it on the only browser that matters, but also Chrome and Opera.
2013-06-12std: remove substr & str::count_*, methodise char_len, implement slice_chars.Huon Wilson-1/+1
The confusing mixture of byte index and character count meant that every use of .substr was incorrect; replaced by slice_chars which only uses character indices. The old behaviour of `.substr(start, n)` can be emulated via `.slice_from(start).slice_chars(0, n)`.
2013-06-11Alter rust.css to make the documentation look more appealingSiegeLord-23/+73
2013-06-11std: convert pow, hypot, atan2, log to take arguments by reference.Huon Wilson-2/+2
2013-06-11fix tests, remove some warningsHuon Wilson-6/+6
2013-06-10std: remove str::contains in favour of the methodHuon Wilson-8/+3
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-3/+3
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-1/+1
2013-06-09std: remove foldr and alli methods in vecHuon Wilson-0/+1
2013-06-09std: remove fold[lr] in favour of iteratorsHuon Wilson-1/+1
2013-06-07auto merge of #7003 : alco/rust/tutorial-block-expr, r=bstriebors-4/+9
This is something that's only been briefly mentioned in the beginning of the tutorial and all of the closure examples within this subsection include only one expression between { and }.
2013-06-08A reminder that a block is a single expr in closuresAlexei Sholik-4/+9
This is something that's only been briefly mentioned in the beginning of the tutorial and all of the closure examples within this subsection include only one expression between { and }.
2013-06-08Mention `for` in the section on loopsAlexei Sholik-2/+5
The "4.3 Loops" section only describes `while` and `loop`. We then see `for` used in a code sample at the end of the "13. Vectors and strings" section, but it's explained for the first time only in the next section -- "14. Closures". It is worth mentioning it in "4.3 Loops".
2013-06-06tutorial: fix for-loop exampleRamkumar Ramachandra-4/+5
Although in the example function `each` works as expected with rust-0.6 (the latest release), it fails to even compile with `incoming` rust (see test/compile-fail/bad-for-loop-2.rs). Change the function to return a `bool` instead of `()`: this works fine with both versions of rust, and does not misguide potential contributors. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-06-06Fix duplicate words in the docsAlexei Sholik-1/+1
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-9/+14
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-02docs: Mention recently-added rustpkg features in the rustpkg manualTim Chevalier-0/+19
2013-05-31fix tutorial lint warningsDaniel Micay-2/+1
2013-05-31mv the raw pointer {swap,replace}_ptr to std::ptrDaniel Micay-1/+1
2013-05-30Minor grammar fix.Gábor Horváth-1/+1
2013-05-30Minor style fix.Gábor Horváth-1/+1
2013-05-30Minor documentation addition.Gábor Horváth-1/+2
2013-05-29auto merge of #6825 : caitp/rust/issue-6824, r=Aatchbors-2/+2
Show `int_suffix_size` to appear 0 or 1 times Show `exponent | . dec_lit` to appear 0 or 1 times, to show why `3f;` is a valid number
2013-05-30Fixes #6824 - Correct scan_number() grammarCaitlin Potter-2/+2
Show `int_suffix_size` to appear 0 or 1 times Show `exponent | . dec_lit` to appear 0 or 1 times, to show why `3f;` is a valid number
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-5/+37