about summary refs log tree commit diff
path: root/doc/tutorial.md
AgeCommit message (Collapse)AuthorLines
2013-12-10Clarify arityCorey Richardson-3/+3
2013-12-10Inherited mutabilty clarificationCorey Richardson-3/+2
Also no longer reference mutable fields
2013-12-10loop -> continueCorey Richardson-1/+1
2013-12-10Wildcard changes.Corey Richardson-3/+2
2013-12-10Macro definition is feature gated.Corey Richardson-1/+3
2013-12-10Fix tiny formatting error.Corey Richardson-1/+1
2013-12-10Clarify `as`, mention transmute.Corey Richardson-6/+10
2013-12-10Clarify that strings aren't magical.Corey Richardson-1/+2
2013-12-10Fix tiny formatting error.Corey Richardson-1/+1
2013-12-10Add rustdoc documentation.Corey Richardson-3/+5
2013-12-10Fix grammar error.Corey Richardson-1/+2
2013-12-10Add a link to the wiki's package list and refer to gitCorey Richardson-4/+12
2013-12-10Note that Rust can be embedded.Corey Richardson-1/+1
2013-12-10Fix span.Corey Richardson-1/+1
2013-12-10Explain potentially confusing string example.Corey Richardson-4/+5
Reported be @ElBaha
2013-12-04rewrite part of the tutorialDaniel Micay-46/+361
This begins a rewrite of some sections the tutorial as an introduction to concepts through the implementation of a simple data structure. I think this would be a good way to introduce references, traits and many other concepts too. For example, the section introducing alternatives to ownership can demonstrate a persistent list.
2013-11-28Register new snapshotsAlex Crichton-6/+6
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-20/+13
2013-11-26Updating docs with updated closure syntax, `&fn` -> `||`Vijay Korapaty-9/+9
2013-11-22minor rewording in the tutorial's `Rc` coverageDaniel Micay-1/+2
2013-11-21tutorial: alternatives to ownershipDaniel Micay-48/+47
This replaces the old section on managed pointers because the syntax is going to be removed and it's currently feature gated so the examples don't work out-of-the-box. Dynamic mutability coverage can be added after the `Mut<T>` work has landed.
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-2/+2
2013-11-17Forbid privacy in inner functionsAlex Crichton-2/+5
Closes #10111
2013-11-14Fixes formattingNoufal Ibrahim-0/+3
Without this, a.rs appears as a struck out line.
2013-11-13doc: disable parser error highlighting + a few fixesAdrien Tétar-8/+8
CodeMirror parser errors are related to #9873.
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-08auto merge of #10354 : thestinger/rust/vector, r=huonwbors-133/+64
This section desperately needs to be expanded, but removing the misleading/incorrect information is a priority. Managed vectors/strings are not covered, as they are feature-gated and are only a micro-optimization to avoid double-indirection. Closes #6882
2013-11-08tutorial: rewrite the section vectors/stringsDaniel Micay-133/+64
This section desperately needs to be expanded, but removing the misleading/incorrect information is a priority. Managed vectors/strings are not covered, as they are feature-gated and are only a micro-optimization to avoid double-indirection. Closes #6882
2013-11-07auto merge of #10243 : mattcarberry/rust/master, r=brsonbors-1/+1
Associated with Issue #6563. Useful for Apollo Guidance Computer simulation, Unix file system permissions, and maybe one or two other things.
2013-11-03Fixed formatting.Noufal Ibrahim-0/+1
The code block shows up inline without proper formatting without this newline. Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>
2013-11-02Added octal literal support.Matt Carberry-1/+1
2013-10-31auto merge of #10167 : briantdawn/rust/master, r=cmrbors-1/+1
To keep consistency with the word "borrowing" I suppose an alternate way to write this could be "Having an object borrow an immutable pointer freezes it and prevents mutation".
2013-10-30Fixed incorrect usage of 'Borrowing'.Brian-1/+1
2013-10-28Capitalize statics in f32 and f64 modsZiad Hatahet-13/+13
Fixes #10077
2013-10-24Test fixes and merge conflictsAlex Crichton-2/+2
2013-10-22Minor grammatical fixes and removed section on 'rust' toolMichael Letterle-16/+0
2013-10-22Remove old logging from the tutorialAlex Crichton-4/+4
2013-10-21doc: fix links to comply with the new rustdocAdrien Tétar-28/+30
Closes #9911.
2013-10-16remove the rusti commandDaniel Micay-3/+1
Closes #9818 Closes #9567 Closes #8924 Closes #8910 Closes #8392 Closes #7692 Closes #7499 Closes #7220
2013-10-13fix typos in doc/tutorial.mdErik Lyon-2/+2
2013-10-07auto merge of #9674 : ben0x539/rust/raw-str, r=alexcrichtonbors-1/+6
This branch parses raw string literals as in #9411.
2013-10-08document raw string literals in tutorial.md and rust.mdBenjamin Herr-1/+6
2013-10-07Document visibility in the manual/tutorialAlex Crichton-12/+13
This removes the warning "Note" about visibility not being fully defined, as it should now be considered fully defined with further bugs being considered just bugs in the implementation.
2013-10-05Implement feature-gating for the compilerAlex Crichton-0/+8
A few features are now hidden behind various #[feature(...)] directives. These include struct-like enum variants, glob imports, and macro_rules! invocations. Closes #9304 Closes #9305 Closes #9306 Closes #9331
2013-10-01remove the `float` typeDaniel Micay-104/+104
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-30tutorial: Remove usage of fmt!Alex Crichton-17/+20
2013-09-28auto merge of #9589 : thestinger/rust/tutorial, r=alexcrichtonbors-58/+70
2013-09-28tutorial: rewrite the sections on boxes/movesDaniel Micay-58/+70
2013-09-24tutorial.md : correct formula in fn area()eliovir-1/+1
change formula (other solution could be using abs()).
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.