Daniel Hofstetter
7ba9c44b94
Remove "bin" section from Cargo.toml
2014-08-03 14:19:05 +02:00
bors
ed264286dd
auto merge of #16198 : cakebaker/rust/remove_unused_tuple_struct, r=steveklabnik
2014-08-03 08:11:10 +00:00
bors
4d4eb10230
auto merge of #16186 : steveklabnik/rust/guide_cargo_new, r=alexcrichton
...
Two commits here: one to add `cargo new` to the guide, and a second to mention the lockfile that Cargo now generates.
2014-08-02 23:36:09 +00:00
Daniel Hofstetter
867d8e6356
Remove unused tuple struct
2014-08-02 17:28:42 +02:00
bors
5bad333fec
auto merge of #16175 : EduardoBautista/rust/fix-guessing-game-appearing-early, r=steveklabnik
...
Solves: https://github.com/rust-lang/rust/issues/16162
2014-08-02 12:06:09 +00:00
bors
71a42807ad
auto merge of #16160 : EduardoBautista/rust/use-bang-at-end-of-hello-world, r=alexcrichton
...
Further into the guide "Hello, world!" is used instead of "Hello, world".
2014-08-02 05:06:11 +00:00
Steve Klabnik
2b9c5d2f74
Add note about Cargo.lock
2014-08-01 22:58:16 -04:00
Steve Klabnik
1a80dcbd56
Use cargo new.
...
Now that this feature exists, we should use it.
Fixes #16078
2014-08-01 22:58:01 -04:00
bors
d7cfc34a22
auto merge of #16119 : steveklabnik/rust/guide_pointers, r=brson
...
This is the next section of the guide, and it's on pointers. It's not done yet, as I need to write the section on ownership and borrowing, but I figured I'd share the rest now, to get feedback on the rest of it while I take some time to get that right.
2014-08-02 00:31:03 +00:00
Eduardo Bautista
69267b1e1d
Move caret under the 'x' variabe
2014-08-01 14:34:18 -05:00
Eduardo Bautista
ea92a5e90a
Use hello_world instead of the guessing_game
2014-08-01 14:30:52 -05:00
Eduardo Bautista
c0048dec4a
Be more consistent with "Hello, world!"
2014-07-31 23:02:22 -05:00
Steve Klabnik
a74197e3f1
Guide: pointers
...
Not the pointer guide, but the guide section on pointers.
Adding a section about patterns for after this, as well.
2014-07-31 14:39:16 -04:00
Steve Klabnik
6121d82d47
Guide: testing
2014-07-30 09:36:32 -04:00
Steve Klabnik
456c4494b8
New Guide: crates and modules
2014-07-29 12:50:25 -04:00
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
Steve Klabnik
fb594484e6
Fix capitalization of Issue.
...
@chris-morgan and @huonw pointed out that even though the feature
is a proper noun, we're using it in a more generic sense here.
2014-06-26 15:30:44 -04:00
Steve Klabnik
39549bebf0
Add a note that this requires git
.
2014-06-26 15:30:06 -04:00
Steve Klabnik
a548e8185a
Guide: Hello, cargo
2014-06-26 15:23:05 -04:00
bors
389fae2ca8
auto merge of #15181 : steveklabnik/rust/hello_world, r=brson
...
This is built on top of https://github.com/rust-lang/rust/pull/15162 . cccae83d92
is the only new commit, you may want to look at that rather than the whole diff.
Writing our first Rust program together. This is the most crucial step, so I go to a fairly deep level of detail. Future sections will move more quickly.
2014-06-26 07:11:23 +00:00
Steve Klabnik
a8ddab4f25
Add extra ignore directives.
2014-06-25 16:12:40 -04:00
Steve Klabnik
cccae83d92
Guide: Hello, world!
...
Let's write our first Rust program!
2014-06-25 14:26:14 -04:00
Steve Klabnik
1d574c1731
thanks @sfackler
2014-06-25 11:01:17 -04:00
Steve Klabnik
845ee09dfe
fix feedback from @huonw
2014-06-25 11:00:34 -04:00
Steve Klabnik
338a84d45f
Guide: install instructions
2014-06-25 11:00:33 -04:00
Steve Klabnik
3ed78f5b6b
Add the Guide, add warning to tutorial.
...
In line with what @brson, @cmr, @nikomatsakis and I discussed this morning, my
redux of the tutorial will be implemented as the Guide. This way, I can work in
small iterations, rather than dropping a huge PR, which is hard to review. In
addition, the community can observe my work as I'm doing it.
This adds a note in line with [this comment][reddit] that clarifies the state
of the tutorial, and the community's involvement with it.
[reddit]: http://www.reddit.com/r/rust/comments/28bew8/rusts_documentation_is_about_to_drastically/ci9c98k
2014-06-24 17:22:50 -07:00