summary refs log tree commit diff
path: root/doc/tutorial.md
AgeCommit message (Collapse)AuthorLines
2013-09-23auto merge of #9439 : steveklabnik/rust/build_rustpkg_tutorial, r=brsonbors-1/+1
Three things in this commit: 1. Actually build the rustpkg tutorial. I didn't know I needed this when I first wrote it. 2. Link to it rather than the manual from the tutorial. 3. Update the headers: most of them were one level too deeply nested.
2013-09-23test: Fix rustdoc and tests.Patrick Walton-28/+0
2013-09-23Add rustpkg tutorial to the official tutorials.Steve Klabnik-1/+1
Three things in this commit: 1. Actually build the rustpkg tutorial. I didn't know I needed this when I first wrote it. 2. Link to it rather than the manual from the tutorial. 3. Update the headers: most of them were one level too deeply nested.
2013-09-23auto merge of #9423 : madjar/rust/patch-1, r=alexcrichtonbors-1/+1
Just something I noticed while reading the tutorial.
2013-09-23Extended the module tutorial section about files a bitMarvin Löbel-13/+50
2013-09-23Fixed a small typo in the tutorialGeorges Dubus-1/+1
Just something I noticed while reading the tutorial.
2013-09-21Update version numbers to 0.8Brian Anderson-5/+5
2013-09-20auto merge of #9327 : larsbergstrom/rust/tutorial_installation_tweak, ↵bors-3/+2
r=catamorphism I've had multiple people whom I pointed at the Rust tutorial ask me where to download the snapshot compiler, so I made the text more explicit.
2013-09-19Clarify that snapshots are automatically retrieved.Lars Bergstrom-3/+2
2013-09-19doc: Fix the tutorial's link to rustpkg docsblake2-ppc-2/+2
2013-09-17auto merge of #9244 : thestinger/rust/drop, r=catamorphismbors-1/+1
This doesn't close any bugs as the goal is to convert the parameter to by-value, but this is a step towards being able to make guarantees about `&T` pointers (where T is Freeze) to LLVM.
2013-09-16switch Drop to `&mut self`Daniel Micay-1/+1
2013-09-16New rustpkg tutorial.Steve Klabnik-0/+2
2013-09-12Document the Zero traitErick Tryzelaar-1/+1
2013-08-27auto merge of #8777 : Kimundi/rust/doc_stuff, r=cmrbors-151/+576
2013-08-27Rewrote module tutorialMarvin Löbel-151/+576
2013-08-26doc: Link condition and error-handling tutorial from main tutorialblake2-ppc-0/+1
2013-08-23Talk about trait bounds in the tutorial.Ben Blum-1/+31
2013-08-20rm obsolete integer to_str{,_radix} free functionsDaniel Micay-3/+2
2013-08-12Remove unnecessary returnCorey Richardson-1/+1
2013-08-10Merge branch 'master' of https://github.com/MAnyKey/rust into rollupErick Tryzelaar-1/+1
2013-08-10Merge branch 'vec-exh' of https://github.com/stepancheg/rust into rollupErick Tryzelaar-1/+1
2013-08-09typo in tutorialMaxim Kolganov-1/+1
2013-08-08Fix more priv falloutCorey Richardson-2/+2
2013-08-07Fix incorrect non-exhaustive matching for fixed length vecsStepan Koltsov-1/+1
Code like this is fixed now: ``` fn foo(p: [u8, ..4]) { match p { [a, b, c, d] => {} }; } ``` Invalid constructors are not reported as errors yet: ``` fn foo(p: [u8, ..4]) { match p { [_, _, _] => {} // this should be error [_, _, _, _, _, .._] => {} // and this _ => {} } } ``` Issue #8311 is partially fixed by this commit. Fixed-length arrays in let statement are not yet allowed: ``` let [a, b, c] = [1, 2, 3]; // still fails ```
2013-08-06remove `extra::iter`Daniel Micay-1/+1
This module provided adaptors for the old internal iterator protocol, but they proved to be quite unreadable and are not generic enough to handle borrowed pointers well. Since Rust no longer defines an internal iteration protocol, I don't think there's going to be any reuse via these adaptors.
2013-08-03rm obsolete documentation on `for`Daniel Micay-11/+6
it is documented in the container/iterator tutorial, not the basic tutorial
2013-08-02librustc: Introduce a new visitor type based on traits and port syntax to it.Patrick Walton-1/+1
This is preparation for removing `@fn`. This does *not* use default methods yet, because I don't know whether they work. If they do, a forthcoming PR will use them. This also changes the precedence of `as`.
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-1/+1
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-5/+5
2013-07-29auto merge of #7984 : gifnksm/rust/tutorial-links, r=bstriebors-8/+6
2013-07-26Deny all warnings by default in doc testsAlex Crichton-0/+1
Allow some common ones that are good for examples, however.
2013-07-23tutorial: Remove the sentence about mutable fields.gifnksm-4/+2
2013-07-23tutorial: Fix obsolete namesgifnksm-3/+3
2013-07-23tutorial: Repair broken linksgifnksm-3/+3
2013-07-21Exposed previously hidden 'use' statements in the tutorial's sample code.zslayton-11/+12
2013-07-18auto merge of #7845 : gifnksm/rust/tutorial-remove-dup, r=cmrbors-11/+1
`pandoc` issues warnings. ``` pandoc: Duplicate link reference `[macros]' "source" (line 2151, column 1) pandoc: Duplicate link reference `[tasks]' "source" (line 2150, column 1) pandoc: Duplicate link reference `[wiki-start]' "source" (line 92, column 1) ``` This PR also removes unused link references.
2013-07-17test: Fix tests.Patrick Walton-42/+51
2013-07-17tutorial: remove unused link references.gifnksm-6/+1
2013-07-17tutorial: remove duplicate link references.gifnksm-6/+1
`pandoc` issues warnings. ``` pandoc: Duplicate link reference `[macros]' "source" (line 2151, column 1) pandoc: Duplicate link reference `[tasks]' "source" (line 2150, column 1) pandoc: Duplicate link reference `[wiki-start]' "source" (line 92, column 1) ```
2013-07-09I forgot the changes to the docs as wellJens Nockert-10/+7
Apparently yesterday wasn't my day, and I forgot to add the changes to all the tests apparently, and in the end forgot the docs extra much. Please documentation, forgive me, I really do love you, I hope you forgive me. Next time we'll meet tutorial, I promise to bring cookies and tea. I really want to be best-friends-forever with you, <3. XOXO
2013-07-03auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmrbors-2/+2
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
2013-07-02doc: Update links to 0.7 release-0.7 0.7Brian Anderson-5/+5
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-2/+2
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-28add a tutorial on containers and iteratorsDaniel Micay-126/+1
2013-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-3/+3
Finally rename finalize to drop. Closes #4332.
2013-06-25Change finalize -> drop.Luqman Aden-3/+3
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-13/+44
2013-06-23vec: remove BaseIter implementationDaniel Micay-4/+4
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.