bors
83a8a56473
auto merge of #15899 : aochagavia/rust/guide, r=kballard
...
The removed code caused confusion because it is not clear that the type of `y` is actually `()`
2014-07-23 06:31:11 +00:00
Adolfo Ochagavía
2d1b87ce33
Remove misleading code example from The Guide
...
The removed code caused confusion because it is not clear that the type of `y` is actually `()`
2014-07-22 20:58:25 +02:00
Steve Klabnik
1e9f86b1dc
Guide: fix headings
2014-07-21 19:39:16 -04:00
Steve Klabnik
e8c9d21130
Guessing game explanation
...
We now build the game at the end of the first section.
I wanted to do it as we went along, but it's too hard with these fundamentals
not in place. The rest will do the 'as we go' approach, but I think this is
better.
2014-07-21 09:54:03 -07:00
Steve Klabnik
fca79e4726
Guide: improve error handling
2014-07-21 09:53:58 -07:00
David Vazgenovich Shakaryan
69127f2f4e
Fix typo.
2014-07-18 23:11:25 -07:00
Steve Klabnik
167533972f
Fix cargo install instructions
...
Cargo now comes with Rust
2014-07-15 16:26:22 -04:00
bors
b74562b0ae
auto merge of #15534 : steveklabnik/rust/guide_stdin, r=brson
2014-07-15 07:36:17 +00:00
bors
5cef16e9b3
auto merge of #15531 : steveklabnik/rust/guide_looping, r=brson
2014-07-15 05:56:19 +00:00
bors
b1ae09e52a
auto merge of #15434 : steveklabnik/rust/guide_match, r=brson
2014-07-15 01:21:22 +00:00
Brian Anderson
a9cf3233f7
Bump version to 0.12.0-pre
2014-07-11 11:26:58 -07:00
Steve Klabnik
6d9334d570
Remove car analogy.
...
This was super silly anyway.
Fixes #15539 .
2014-07-09 13:04:52 -04:00
bors
ec3efa8055
auto merge of #15422 : steveklabnik/rust/guide_compound_data_types, r=brson
...
I'm not happy about the hand-waving around `cmp`, but I'm not sure how to get around it.
2014-07-09 02:21:37 +00:00
bors
1c711db551
auto merge of #15374 : steveklabnik/rust/comments, r=brson
...
I'm leaving off `rustdoc` usage because it won't work unless this is a `pub fn`, and I want to talk about public/private in the context of modules. I'm also not mentioning `//!` because it is exclusively used to provide the overview of a module.
2014-07-09 00:36:40 +00:00
Steve Klabnik
17bb4af8fe
Guide: Standard input
2014-07-08 17:49:19 -04:00
Steve Klabnik
636aff144a
Guide: looping
2014-07-08 15:25:27 -04:00
Steve Klabnik
daea9f4ad9
Guide: match
2014-07-08 12:16:58 -04:00
Steve Klabnik
654a19b091
Guide: comments
2014-07-08 12:07:11 -04:00
Steve Klabnik
11c64f162f
Guide: complex data types
2014-07-08 12:00:47 -04:00
bors
51a7488532
auto merge of #15467 : brson/rust/guideversion, r=alexcrichton
2014-07-06 18:51:34 +00:00
bors
00a32f2f18
auto merge of #15456 : aochagavia/rust/guide, r=alexcrichton
...
Fixes https://github.com/rust-lang/rust/issues/15452
2014-07-06 13:26:35 +00:00
Brian Anderson
7b7d3c2458
doc: --version no longer displays the host triple
2014-07-05 17:54:24 -07:00
Adolfo Ochagavía
d6f8271602
Improved example in the Guide
...
Fixes https://github.com/rust-lang/rust/issues/15452
2014-07-05 18:19:08 +02:00
Mike Boutin
f37e202b53
rustc: Reorder error and note message to reduce confusion.
...
Moved note after error to reduce confusion when the pair appears in the
middle of other errors. Closes #13279 .
2014-07-04 17:28:04 -04:00
bors
5b11610ced
auto merge of #15343 : alexcrichton/rust/0.11.0-release, r=brson
2014-07-04 01:21:19 +00:00
Steve Klabnik
9868b65b15
Guide: add mutable binding section
...
Fixes #15334 .
2014-07-03 12:54:51 -07:00
Steve Klabnik
faf5d926ec
Guide: functions
...
Just a few words about functions and defining them.
2014-07-03 10:55:19 -07:00
Steve Klabnik
748b9477f8
Guide: if
2014-07-03 10:55:10 -07:00
Alex Crichton
ff1dd44b40
Merge remote-tracking branch 'origin/master' into 0.11.0-release
...
Conflicts:
src/libstd/lib.rs
2014-07-02 11:08:21 -07:00
Steve Klabnik
a55c508db6
Guide: variable bindings.
...
Whew! Who knew there was so much to say about variables.
We probably want to move the guessing game to the rust-lang org, rather than
just having it on my GitHub. Or, I could put the code inline. I think it'd be
neat to have it as a project, so people can pull it down with Cargo. Until we
make that decision, I'll just leave this here.
2014-07-01 20:27:37 -04:00
Steve Klabnik
c90950ea60
Re-arrange TOC.
...
I'm going to move testing to be right AFTER the guessing game. I wanted it
to be borderline TDD, but I think that, since the first example is just one
file, it might be a bit overkill.
I'm doing this in its own commit to hopefully avoid merge conflicts.
2014-07-01 12:53:15 -04:00
bors
db29e1b960
auto merge of #15247 : smenardpw/rust/patch-1, r=alexcrichton
...
./hello_world is not recognized on Windows.
We can type either hello_world or hello_world.exe to run the executable. I chose "hello_world.exe", which seems more conventional on Windows.
2014-06-30 23:06:35 +00:00
smenardpw
f6f1cf13d0
Little typo fix
...
- ./hello_world which is not recognized on Windows fixed.
- .exe extension added.
- Little rewriting.
2014-06-30 07:43:15 +02:00
Steve Klabnik
572234ceac
it -> Cargo
...
It wasn't clear if we needed to install Hello World or Cargo.
2014-06-29 21:51:41 -04:00
Alex Crichton
aa1163b92d
Update to 0.11.0
2014-06-27 12:50:16 -07:00
Steve Klabnik
afdb19b3b5
Skeleton outline of the guide.
2014-06-27 05:28:44 -04:00
Steve Klabnik
6bfbc35491
Add one more ignore.
...
Thanks @huonw
2014-06-26 21:57:46 -04:00
Steve Klabnik
aee263c6b0
Fix windows run instructions
...
Thank you, @stormbrew!
2014-06-26 20:49:27 -04:00
Steve Klabnik
e4b87077fb
C macros, not C++ templates.
...
@cmr rightfully points out that C macros are worse, and share the
same name.
2014-06-26 16:58:20 -04:00
Steve Klabnik
15bcb2f9c6
Fix missing word and some grammar
...
Thanks @chris-morgan and @P1start! ❤️
2014-06-26 15:46:36 -04:00
Steve Klabnik
546b202e0e
Note that macros != templates
...
Good call, @chris-morgan and @cmr!
2014-06-26 15:44:29 -04:00
Steve Klabnik
8cd906811a
Clarify which curly is being referred to
...
Thanks @chris-morgan
2014-06-26 15:41:46 -04:00
Steve Klabnik
efc2d4a476
TIL PATHEXT
...
Thanks @chris-morgan ❤️
2014-06-26 15:40:52 -04:00
Steve Klabnik
c73f17486a
Move note about $ up
...
Thanks @chris-morgan ❤️
2014-06-26 15:39:30 -04:00
Steve Klabnik
af4a6c30aa
Fixing link to subreddit.
...
Thanks @chris-morgan ❤️
2014-06-26 15:37:57 -04:00
Steve Klabnik
49a9959d8c
StackOverflow -> Stack Overflow
...
Thanks @chris-morgan
2014-06-26 15:36:57 -04:00
Steve Klabnik
08f533481d
Fix IRC linkage.
...
Death to `here`!
Thanks @chris-morgan ❤️
2014-06-26 15:35:56 -04:00
Steve Klabnik
00ae648496
staticly -> statically
...
What's funny about this one is that spellcheck caught it, but for
some reason didn't give me the right suggestion, so I assumed that it
wasn't in my dictionary. Oh well.
Thanks @P1start! ❤️
2014-06-26 15:34:15 -04:00
Steve Klabnik
8fd69c4009
all/some
...
How could I forsake `rustdoc`? 😅
Thanks @huonw.
2014-06-26 15:32:35 -04:00
Steve Klabnik
98fd2abe0a
tha -> than
...
Thanks @huonw ❤️
2014-06-26 15:31:41 -04:00