| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2014-10-06 | doc: Update output of `rustc --version` | Brian Anderson | -1/+1 | |
| 2014-10-04 | auto merge of #17754 : O-I/rust/update-guide, r=steveklabnik | bors | -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-03 | Adds comma | Rahul 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-03 | Fixes wording | Rahul Horé | -2/+2 | |
| 2014-10-03 | Removes extra . | Rahul Horé | -1/+1 | |
| 2014-10-03 | Adds missing cd | Rahul Horé | -1/+2 | |
| 2014-10-03 | Use similar syntax in all arms | Rahul Horé | -7/+5 | |
| See issue #17672. This was started in commit ee1cbb9c71bfab8500dfabedb35ba63dd1e5b7ff, but there were a few more lines to update. | ||||
| 2014-10-03 | Fixes output | Rahul Horé | -1/+1 | |
| 2014-10-03 | Adds trailing comma | Rahul Horé | -2/+2 | |
| 2014-10-03 | Fixes spacing | Rahul Horé | -2/+2 | |
| 2014-10-03 | Update signature of try_recv() | Steve Klabnik | -1/+1 | |
| 2014-10-03 | auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichton | bors | -4/+4 | |
| @steveklabnik, are you interested in looking this over? | ||||
| 2014-10-02 | rollup merge of #17717 : steveklabnik/gh17190 | Alex Crichton | -3/+5 | |
| 2014-10-02 | rollup merge of #17698 : jistr/guide_export | Alex Crichton | -3/+3 | |
| 2014-10-02 | extra comment about macros | Steve Klabnik | -3/+5 | |
| Fixes #17190 | ||||
| 2014-10-01 | Fix incorrect statement about ok() | Steve Klabnik | -5/+5 | |
| Fixes #17676. | ||||
| 2014-10-01 | Don't compare () to null. | Steve Klabnik | -8/+6 | |
| Fixes #17671. | ||||
| 2014-10-01 | use similar syntax in all arms | Steve Klabnik | -1/+1 | |
| Fixes #17672 | ||||
| 2014-10-01 | Use relative doc URLs in top-level guides | Keegan McAllister | -4/+4 | |
| 2014-10-01 | Guide: clarify exporting | Jiří 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-09-30 | librustc: Forbid `..` in range patterns. | Patrick Walton | -4/+4 | |
| This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change] | ||||
| 2014-09-29 | rollup merge of #17510 : MatejLach/find_fix | Alex Crichton | -2/+0 | |
| 2014-09-29 | auto merge of #17535 : Manishearth/rust/patch-2, r=steveklabnik | bors | -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-26 | Mention array sugar in guide | Manish Goregaokar | -0/+1 | |
| 2014-09-25 | Correct tense | Matej Lach | -1/+1 | |
| 2014-09-24 | Correct typo in the Iterator adapters section | Matej Lach | -1/+1 | |
| 2014-09-24 | Remove unnecessary code from an example | Matej Lach | -2/+0 | |
| 2014-09-23 | auto merge of #17366 : ohazi/rust/master, r=steveklabnik | bors | -5/+1 | |
| See: http://doc.rust-lang.org/std/from_str/trait.FromStr.html ``` let input_num = from_str::<Option<uint>>("5"); ``` ``` <anon>:2:21: 2:45 error: failed to find an implementation of trait std::from_str::FromStr for core::option::Option<uint> <anon>:2 let input_num = from_str::<Option<uint>>("5"); ^~~~~~~~~~~~~~~~~~~~~~~~ ``` | ||||
| 2014-09-19 | rollup merge of #17350 : pablobm/doc-fix | Alex Crichton | -2/+0 | |
| 2014-09-18 | from_str has an impl for uint, not Option<uint> | Oren Hazi | -5/+1 | |
| 2014-09-17 | Fix warning and make code follow the text better | Pablo Brasero | -2/+0 | |
| 2014-09-17 | rollup merge of #17294 : theevocater/master | Alex Crichton | -2/+5 | |
| 2014-09-17 | rollup merge of #17278 : steveklabnik/gh17242 | Alex Crichton | -2/+2 | |
| 2014-09-17 | rollup merge of #17277 : steveklabnik/doc_fix_rollup | Alex Crichton | -13/+8 | |
| 2014-09-17 | auto merge of #17227 : tshepang/rust/stronger-break, r=aturon | bors | -1/+1 | |
| Remove trailing whitespace while at it | ||||
| 2014-09-16 | Fallout from renaming | Aaron Turon | -1/+1 | |
| 2014-09-16 | Update triple per comments | Jake Kaufman | -1/+1 | |
| 2014-09-16 | auto merge of #17244 : spastorino/rust/patch-1, r=alexcrichton | bors | -3/+3 | |
| 2014-09-15 | Correct windows install link in guide | Jake Kaufman | -2/+5 | |
| This closes #17260. The guide references the old install location for the windows rust install before it was split into 64bit and 32bit installers. This adds a link to each binary. | ||||
| 2014-09-15 | use _sample configurations..._ rather than _here_ as link text | Dan Connolly | -2/+2 | |
| 2014-09-15 | remove rendundant function | Steve Klabnik | -4/+3 | |
| Fixes #17230. | ||||
| 2014-09-15 | remove references to HM inference | Steve Klabnik | -6/+2 | |
| Fixes #17229. | ||||
| 2014-09-15 | properly annotate C code in the guide | Steve Klabnik | -3/+3 | |
| Without 'notrust,' we were getting a playpen link. Fixes #17228. | ||||
| 2014-09-13 | `rustc main.rs` generates main binary file | Santiago Pastorino | -3/+3 | |
| 2014-09-13 | These two lines are actually three. | Markus Unterwaditzer | -1/+1 | |
| 2014-09-13 | doc: that felt like it needed a stronger break than what comma provides | Tshepang Lekhonkhobe | -2/+2 | |
| Remove trailing whitespace while at it | ||||
| 2014-09-12 | auto merge of #17155 : steveklabnik/rust/dherman_fixes, r=brson | bors | -224/+33 | |
| Fixing more suggestions from @dherman . I made them individual commits in case we want to discuss any of them further. | ||||
| 2014-09-11 | Replace the Tutorial with the Guide. | Steve Klabnik | -12/+3 | |
| The Guide isn't 100% perfect, but it's basically complete. It's certainly better than the tutorial is. Time to start pointing more people its way. I also just made it consistent to call all things 'guides' rather than tutorials. Fixes #9874. This is the big one. And two bugs that just go away. Fixes #14503. Fixes #15009. | ||||
| 2014-09-10 | don't say 'semantic' | Steve Klabnik | -8/+8 | |
| 2014-09-10 | remove rich hickey love | Steve Klabnik | -3/+3 | |
