about summary refs log tree commit diff
path: root/src/doc/tutorial.md
AgeCommit message (Collapse)AuthorLines
2014-02-20auto merge of #12161 : aepsil0n/rust/docs/for-loop, r=alexcrichtonbors-0/+26
I just started learning Rust and the absence of an explanation of the for-loop in the beginning really bugged me about the tutorial. Hence I simply added these lines, where I would have expected them. I know that there is something later on in the section on traits. However, this simple iteration scheme feels like something that you should be aware of right away.
2014-02-18Removing '15.3 Do syntax' in tutorial.Axel Viala-39/+18
The 'do' keyword was deprecated in 0.10 #11868 , and is keep as reserved keyword #12157 . So the tutorial part about it doesn't make sense. The spawning explanation was move into '15.2 Closure compatibility'. Fixing misspelling. Thanks for precisions. Moved from 15.2 to 15.1. Fixed typo, and apply pnkfelix advices.
2014-02-15auto merge of #12272 : alexcrichton/rust/snapshot, r=kballardbors-19/+19
This notably contains the `extern mod` => `extern crate` change. Closes #9880
2014-02-14Remove broken link to old conditions tutorialSteven Fackler-2/+0
2014-02-14extern mod => extern crateAlex Crichton-19/+19
This was previously implemented, and it just needed a snapshot to go through
2014-02-14tutorial: stronger wording in build instructionsCorey Richardson-2/+2
2014-02-12doc: rename 'nil' to 'unit' when describing `()`Matthijs van der Vleuten-3/+3
2014-02-11auto merge of #12171 : chromatic/rust/fix_crate_tutorial_typos, r=brsonbors-39/+34
This commit attempts to clarify a section of the tutorial. It also fixes some typos.
2014-02-11 Explain container iteration in the loop tutorialEduard Bopp-2/+16
As suggested by @pnkfelix in #12161, this extends the examples by a for-loop that iterates over a string as an example for container iteration.
2014-02-11Factoring bigint, rational, and complex out of libextra into libnum.Felix S. Klock II-7/+7
Removed use of globs present in earlier versions of modules. Fix tutorial.md to reflect `extra::rational` ==> `num::rational`.
2014-02-10Revised Crate section of tutorial for clarity.chromatic-39/+34
2014-02-10Document for-loop in tutorial section on loopsEduard Bopp-0/+12
2014-02-09Rearranged enum section of tutorial for clarity.chromatic-43/+40
This version starts with the simple case and builds on it.
2014-02-08Update docs and tests for #[deriving(Show)].Huon Wilson-1/+1
2014-02-07Removed @self and @Trait.Eduard Burtescu-17/+10
2014-02-06Redesign output flags for rustcAlex Crichton-2/+2
This commit removes the -c, --emit-llvm, -s, --rlib, --dylib, --staticlib, --lib, and --bin flags from rustc, adding the following flags: * --emit=[asm,ir,bc,obj,link] * --crate-type=[dylib,rlib,staticlib,bin,lib] The -o option has also been redefined to be used for *all* flavors of outputs. This means that we no longer ignore it for libraries. The --out-dir remains the same as before. The new logic for files that rustc emits is as follows: 1. Output types are dictated by the --emit flag. The default value is --emit=link, and this option can be passed multiple times and have all options stacked on one another. 2. Crate types are dictated by the --crate-type flag and the #[crate_type] attribute. The flags can be passed many times and stack with the crate attribute. 3. If the -o flag is specified, and only one output type is specified, the output will be emitted at this location. If more than one output type is specified, then the filename of -o is ignored, and all output goes in the directory that -o specifies. The -o option always ignores the --out-dir option. 4. If the --out-dir flag is specified, all output goes in this directory. 5. If -o and --out-dir are both not present, all output goes in the current directory of the process. 6. When multiple output types are specified, the filestem of all output is the same as the name of the CrateId (derived from a crate attribute or from the filestem of the crate file). Closes #7791 Closes #11056 Closes #11667
2014-02-04Improved pattern-match code and explanation.chromatic-2/+4
This cleans up a warning about an unused variable and explains the code further.
2014-02-03Remove unnecessary trailing commas.Ivan Enderlin-2/+2
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+3275
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files