about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2014-10-07Fix unclear macros documentation.Joseph Crail-1/+1
2014-10-07auto merge of #16641 : steveklabnik/rust/intro_redux, r=alexcrichtonbors-358/+499
Because my '30 minute intro' was originally a blog post, the tone was a bit too light. It also was written a long time ago, and deserves a bit of a refresher for modern Rust. now that my work on the Guide is wrapping up, I want to give it a quick re-write as well. This is not yet done, but I'm submitting it for feedback so far. I'd really like some comments on the ownership part in particular, which gets lower level than before, but is not strictly 100% accurate. Trying to strike a balance. In general, I'm not sure I go into enough detail for those without systems experience, but am afraid of too much detail for those that do. Rendered view: https://github.com/steveklabnik/rust/blob/intro_redux/src/doc/intro.md /cc @wycats @nikomatsakis @brson etc
2014-10-07auto merge of #17832 : brson/rust/updateversion, r=alexcrichtonbors-1/+1
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-1/+1
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-06doc: Update output of `rustc --version`Brian Anderson-1/+1
2014-10-04docs: Reference hoedown instead of sundownBrian Campbell-2/+2
2014-10-04auto merge of #17754 : O-I/rust/update-guide, r=steveklabnikbors-17/+16
Hi, These are a few small edits to the Guide that I made while reading online. Really well done and approachable. I have a few questions below, but I don't know if this is the proper place to ask them, so feel free to ignore the below. 1. Trailing commas seem to be a convention in Rust and are used quite a bit throughout the Guide, but are never explicitly mentioned. Maybe adding a short mention about them when they first appear in the Structs section might be helpful to those who are unfamiliar with or don't use them in other languages. 2. In the Iterators section, there is a block of code like this: ```rust let mut range = range(0i, 10i); loop { match range.next() { Some(x) => { println!("{}", x); } // no comma needed? None => { break } } } ``` My inclination would be to put a comma where the comment is to separate the two arms to get this to compile, but it runs fine either way. Is there a convention on commas for scenarios like this where each arm is enclosed in `{}`? All the best, O-I
2014-10-03auto merge of #17743 : steveklabnik/rust/receiver_fix, r=alexcrichtonbors-1/+1
2014-10-03Adds commaRahul Horé-1/+1
Oddly (to me), this code runs fine without the comma separating the `Some` and `None` arms of the `match` construct. It seems like Rust doesn't require you to separate arms with commas if all the expressions are enclosed in braces.
2014-10-03Fixes wordingRahul Horé-2/+2
2014-10-03Removes extra .Rahul Horé-1/+1
2014-10-03Adds missing cdRahul Horé-1/+2
2014-10-03Test fixes from the rollupAlex Crichton-1/+1
2014-10-03Use similar syntax in all armsRahul Horé-7/+5
See issue #17672. This was started in commit ee1cbb9c71bfab8500dfabedb35ba63dd1e5b7ff, but there were a few more lines to update.
2014-10-03Fixes outputRahul Horé-1/+1
2014-10-03Adds trailing commaRahul Horé-2/+2
2014-10-03Fixes spacingRahul Horé-2/+2
2014-10-03Update signature of try_recv()Steve Klabnik-1/+1
2014-10-03Re-do the 30 minute introSteve Klabnik-358/+499
This was originally on my blog, so it's incredibly informal. Let's make it better.
2014-10-03auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichtonbors-15/+371
@steveklabnik, are you interested in looking this over?
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-18/+2
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02rollup merge of #17717 : steveklabnik/gh17190Alex Crichton-3/+5
2014-10-02rollup merge of #17698 : jistr/guide_exportAlex Crichton-3/+3
2014-10-02rollup merge of #17695 : steveklabnik/various_docsAlex Crichton-20/+14
2014-10-02extra comment about macrosSteve Klabnik-3/+5
Fixes #17190
2014-10-02I am bad at mathSteve Klabnik-1/+1
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-1/+1
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02docs: remove mentions of Gc.Eduard Burtescu-18/+2
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-1/+1
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-01Fix incorrect statement about ok()Steve Klabnik-5/+5
Fixes #17676.
2014-10-01Don't compare () to null.Steve Klabnik-8/+6
Fixes #17671.
2014-10-01use similar syntax in all armsSteve Klabnik-1/+1
Fixes #17672
2014-10-01:fire: τSteve Klabnik-6/+2
Fixes #17674
2014-10-01Link plugins guide from elsewhereKeegan McAllister-6/+23
2014-10-01Add a guide to compiler pluginsKeegan McAllister-0/+261
Fixes #16983.
2014-10-01Add a red-box warning to the macros guideKeegan McAllister-0/+14
2014-10-01Update some old references to rust.mdKeegan McAllister-2/+2
2014-10-01Use relative doc URLs in top-level guidesKeegan McAllister-8/+8
2014-10-01Add some notes about macro scopingKeegan McAllister-0/+60
2014-10-01Guide: clarify exportingJiří Stránský-3/+3
Mention that using `pub` is called exporting. Remove that `use` is called re-exporting, because `pub use` should be called re-exporting. The guide currently doesn't cover `pub use`.
2014-10-01rust.css: Make it more clear when code spans are linksKeegan McAllister-0/+4
2014-10-01Remove all use of librustuvAaron Turon-1/+1
2014-10-01auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581bors-5/+5
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. r? @nick29581
2014-09-30Add `if let` to the referenceJakub Wieczorek-1/+14
2014-09-30Update based on PR feedbackKevin Ballard-2/+2
2014-09-30Move `if let` behind a feature gateKevin Ballard-1/+3
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-5/+5
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-29rollup merge of #17510 : MatejLach/find_fixAlex Crichton-2/+0
2014-09-29auto merge of #17535 : Manishearth/rust/patch-2, r=steveklabnikbors-0/+1
It's a rather useful syntax, and non-obvious. A friend of mine is learning Rust and was trying to find a way to easily do such an initialization — he couldn't find it in the guide and was pretty surprised when I showed him. Looks like something that should be mentioned. r? @steveklabnik
2014-09-27auto merge of #17511 : MatejLach/rust/iter_guide_typo, r=alexcrichtonbors-2/+2
The sentence "The new iterator `filter()` produces returns only the elements that that closure returned `true` for:" can be structured as: "The new iterator `filter()` produces only the elements that that closure returned `true` for:" or as: "The new iterator `filter()` returns only the elements that that closure returned `true` for:" however, not both. I went with "produces", since it then talks about returning true and having "return" so close together doesn't sound nice. r @steveklabnik ?