about summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorLines
2013-05-20added and rewrote text for 'do' and 'for' loopsJohn Clements-12/+16
2013-05-19auto merge of #6106 : thestinger/rust/iter, r=bstriebors-1/+1
I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-1/+1
2013-05-17Add a small section on futures to the tutorialOlivier Saut-13/+60
2013-05-16syntax: implement #[deriving(DeepClone)]. Fixes #6514.Huon Wilson-3/+3
2013-05-14auto merge of #6475 : sonwow/rust/tutorials, r=brsonbors-27/+27
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-6/+6
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-14Replace shared/unique by managed/owned in the tutorialYoungsoo Son-27/+27
2013-05-13auto merge of #6417 : pcwalton/rust/exprs-in-patterns, r=pcwaltonbors-42/+42
r? @graydon
2013-05-13doc: document the #[deriving] attribute.Huon Wilson-0/+64
Closes #4916.
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-42/+42
2013-05-11auto merge of #6398 : osaut/rust/master, r=bstriebors-31/+27
I have replaced io::println by println in the tutorial as I do not think it is needed anymore since it is already included in prelude.rs.
2013-05-10Fix tests with the swap operatorAlex Crichton-1/+3
2013-05-10Remove the '<->' operator from the languageAlex Crichton-30/+1
2013-05-10Replace io::println by println as it is now included in prelude.rsOlivier Saut-31/+27
2013-05-08fix incorrect region code based on the old 'selfDaniel Micay-7/+7
also removes unnecessary casts from the RcMut implementation
2013-05-04small fix to the tutorial-ffi destructor exampleDaniel Micay-7/+4
The previous example was erroneously attempting to destroy uninitialized memory, which was often zeroed (masking the bug).
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-11/+7
2013-05-01Revert rename of Div to QuotBrendan Zabarauskas-3/+3
2013-04-30Revert "doc: XFAIL mysterious failure on bots"Jed Davis-1/+1
This reverts commit 2c6dae081b72d33a2c51b5f46436e6350bb3682f.
2013-04-29doc: XFAIL mysterious failure on botsPatrick Walton-1/+1
2013-04-29librustc: Change labels to use the lifetime notation `'`.Patrick Walton-3/+3
2013-04-29tutorial: Fix 'self' to 'Self'ILYONG CHO-5/+4
2013-04-28make way for a new iter moduleDaniel Micay-1/+1
2013-04-26tutorial-ffi: add example of a custom destructorDaniel Micay-0/+68
2013-04-26tutorial: rework the section on destructorsDaniel Micay-99/+33
This removes the comparison to manual memory management examples, because it requires too much existing knowledge. Implementing custom destructors can be covered in the FFI tutorial, where `unsafe` is already well explained.
2013-04-24Fixed typo... And a billion other things.Marvin Löbel-3/+3
2013-04-22rustpkg: In doc, mention other implicit RUST_PATH entriesTim Chevalier-1/+6
as per Graydon's comment
2013-04-22docs: Sketch out rustpkg manualTim Chevalier-0/+103
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-9/+9
2013-04-19Fix debug! usage in tutorialDan Luu-1/+1
2013-04-18core::comm: Modernize constructors to use `new`Brian Anderson-1/+1
2013-04-17Explain use of debug\! in tutorialDan Luu-0/+3
2013-04-12auto merge of #5852 : thestinger/rust/ffi, r=thestingerbors-4/+5
2013-04-12tutorial-ffi: add another missing wordDaniel Micay-4/+5
2013-04-12tutorial-ffi: add missing wordDaniel Micay-2/+2
2013-04-12rewrite the ffi tutorial with snappy as an exampleDaniel Micay-195/+139
The example with OpenSSL is incorrect, because OpenSSL is using a static variable for the return value and isn't thread-safe. The gettimeofday example isn't great because it's not very portable.
2013-04-10auto merge of #5773 : dunsmoreb/rust/incoming, r=bstriebors-1/+5
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132.
2013-04-10Update destructuring to reference tuples section.Bryan Dunsmore-1/+2
2013-04-08auto merge of #5782 : zofrex/rust/doc-1-tuples, r=thestingerbors-3/+4
As per [the 0.6 release notes](https://github.com/mozilla/rust/wiki/Doc-detailed-release-notes#06-april-2013) single-element tuples are legal. I spotted a couple of places in the documentation that said otherwise, and propose these changes to them.
2013-04-08auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestingerbors-1/+1
Change wrong field name in "Trait Inheritance" section.
2013-04-07Fixed typoPavel Panchekha-1/+1
Change wrong field name in "Trait Inheritance" section.
2013-04-07Include definition of tuples for destructuring.Bryan Dunsmore-1/+4
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132.
2013-04-07Update manual for single-element tuple typeszofrex-1/+1
2013-04-07Update manual for single-element tupleszofrex-1/+2
2013-04-07Update tutorial: 1-tuples now existzofrex-1/+1
2013-04-05auto merge of #5721 : dhardy/rust/master, r=graydonbors-0/+32
This is some stuff which seemed to be missing to me (though I haven't read everything yet so hope I haven't missed the relevant section). A similar addition for borrowing handles is needed, but #5720 stumped me. Comments welcome.
2013-04-05Tutorial: spelling correction and move a failing test to an xfail-test ↵Diggory Hardy-1/+3
marked code block.
2013-04-04Tutorial: fix typoDiggory Hardy-4/+4
2013-04-04Tutorial: comment on how mutability applies to boxesDiggory Hardy-0/+30