Steve Klabnik
464077d0a7
Rollup merge of #25156 - rydotyosh:patch-4, r=alexcrichton
...
Remove printing of secret number at final source.
2015-05-07 12:21:04 +02:00
Steve Klabnik
6db57a2dcb
Rollup merge of #25154 - rydotyosh:patch-3, r=steveklabnik
...
Edit version of #25150 .
This commit depends on #25148 .
2015-05-07 12:21:04 +02:00
Steve Klabnik
414e37f3d4
Rollup merge of #25148 - banks:master, r=steveklabnik
...
Let me know if I didn't follow correct procedure - seems a trivial change and no one that can be automatically tested.
2015-05-07 12:21:04 +02:00
Steve Klabnik
1d3183929a
Rollup merge of #25142 - rydotyosh:patch-1, r=alexcrichton
2015-05-07 12:21:03 +02:00
Steve Klabnik
0ad94ae126
Rollup merge of #25141 - steveklabnik:fix_guessing_game, r=huonw
...
https://github.com/rust-lang/rust/pull/25080/files#r29634986
r? @huonw
2015-05-07 12:21:03 +02:00
Steve Klabnik
888c12ccbb
Rollup merge of #25139 - hibariya:fix-indentation, r=alexcrichton
2015-05-07 12:21:03 +02:00
Steve Klabnik
76bbb3237c
Rollup merge of #25052 - jooert:misc_attr_reference, r=steveklabnik
...
Unsafe destructors were removed, added remarks about needed feature gates.
cc #16676
r? @steveklabnik
2015-05-07 12:21:02 +02:00
らいどっと
1884c87207
doc: Fix remove secret number at final source
...
Remove printing of secret number at final source.
2015-05-07 02:20:31 +09:00
らいどっと
08923fbff2
doc: Fix remove unused variable
...
This commit depends on #25148 .
2015-05-07 01:58:55 +09:00
Paul Banks
81b90bd56f
Correct initial guessing game example. Fixes #25147 . r? @steveklabnik
2015-05-06 14:00:35 +01:00
らいどっと
085e1f489b
doc: Fix link of repr attribute
2015-05-06 18:11:54 +09:00
Steve Klabnik
fc9bc779d2
Fix explanation of Cargo's behavior
...
https://github.com/rust-lang/rust/pull/25080/files#r29634986
2015-05-06 04:18:56 -04:00
Hika Hibariya
705f355e53
Fix indentation in the "Strings" chapter
2015-05-06 09:45:30 +09:00
Steve Klabnik
8aaafeaf79
Rollup merge of #25112 - jsyeo:jsyeo-while-let, r=alexcrichton
...
The indentation in this example is messed up. The `_ => break,` line was using a tab instead of spaces to indent.
2015-05-05 16:56:01 -04:00
Steve Klabnik
477cf9c606
Rollup merge of #25080 - steveklabnik:guessing_game, r=alexcrichton
...
This also made me realize that I wasn't using the correct term,
'associated functions', rather than 'static methods'. So I corrected
that in the method syntax chapter.
2015-05-05 16:56:01 -04:00
Steve Klabnik
1eae884f39
Rollup merge of #24782 - steveklabnik:doc_ownership, r=nikomatsakis
...
Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
2015-05-05 16:56:01 -04:00
Steve Klabnik
9d512fdd19
TRPL: guessing game
...
This also made me realize that I wasn't using the correct term,
'associated functions', rather than 'static methods'. So I corrected
that in the method syntax chapter.
2015-05-05 16:54:34 -04:00
Steve Klabnik
ab3cb8c5ae
TRPL: ownership, borrowing, and lifetimes
...
Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
2015-05-05 14:27:31 -04:00
Jason Yeo
0476586643
Fix indentation in while-let example
2015-05-05 12:02:18 +08:00
Manish Goregaokar
135502ef00
Rollup merge of #25109 - alexcrichton:fix-doc-crates-io-link, r=steveklabnik
...
Right now it's all hosted over GitHub pages so https doesn't work, so only link
to the http version.
2015-05-05 09:24:48 +05:30
Manish Goregaokar
dc15a151ef
Rollup merge of #25107 - Stebalien:fix-faq, r=steveklabnik
...
`str`s is messy but string is incorrect.
2015-05-05 09:24:42 +05:30
Manish Goregaokar
aff0782b23
Rollup merge of #25104 - brson:rustup, r=alexcrichton
2015-05-05 09:24:29 +05:30
Manish Goregaokar
b8fedad89b
Rollup merge of #25068 - bguiz:patch-3, r=steveklabnik
...
- `File::open` is for opening a file in read-only mode
- `File::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
2015-05-05 09:23:36 +05:30
Alex Crichton
2c04696978
doc: Cargo documentation doesn't have https
...
Right now it's all hosted over GitHub pages so https doesn't work, so only link
to the http version.
2015-05-04 16:25:02 -07:00
Steven Allen
b630cd74dc
Strings and vectors are not built-in types.
...
strs messy but string is something else...
2015-05-04 17:38:10 -04:00
Brian Anderson
2de6515de8
doc: rustup.sh doesn't require sudo
2015-05-04 13:23:27 -07:00
bors
a979efc2f9
Auto merge of #25082 - shepmaster:inline-docs, r=steveklabnik
2015-05-04 13:16:20 +00:00
bors
165a8dec9c
Auto merge of #25055 - bguiz:patch-2, r=steveklabnik
...
- I found n error in the book, before contributing the patch to fix it, I had to find where they were hosted
- It took me quite look to find where within the rust-lang *organisation* it was! ... and this should make it easier for the next person in the same position
2015-05-04 09:11:27 +00:00
bors
77ce30f038
Auto merge of #24990 - steveklabnik:doc_associated_constants, r=alexcrichton
2015-05-03 22:42:33 +00:00
Jake Goulding
7826711dcb
Clean up the grammar around the inline attribute
2015-05-03 17:52:11 -04:00
Brendan Graetz
75a3e29042
=BG= minor: File::open --> File::create in rust book
...
- `FIle::open` is for opening a file in read-only mode
- `FIle::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
2015-05-03 20:42:47 +10:00
bors
0d7d3ec9d2
Auto merge of #25058 - steveklabnik:gh25008, r=huonw
...
Fixes #25008
2015-05-02 20:47:32 +00:00
Steve Klabnik
6b465f5c87
TRPL: associated constants
2015-05-02 11:58:30 -04:00
Steve Klabnik
df18642b1a
Revise @ in patterns section
...
Fixes #25008
2015-05-02 11:56:58 -04:00
Brendan Graetz
3eee2b9319
=BG= minor: add link to book source files
...
- I found n error in the book, before contributing the patch to fix it, I had to find where they were hosted
- It took me quite look to find where within the rust-lang *organisation* it was!
2015-05-02 22:40:07 +10:00
Brendan Graetz
07ff8279be
=BG= minor: ensure correct range bounds in concurreny examples in the rust book
...
- `0..2` iterates over `0,1`
- `0..3` iterates over `0,1,2`, which is what we want instead
2015-05-02 22:29:53 +10:00
Johannes Oertel
685a6f7086
Update "Miscellaneous attributes" section of reference manual
2015-05-02 12:44:57 +02:00
Jordan Humphreys
f2a19b39fb
Correct typo in introduction
...
Correct 'danging' to 'dangling'.
2015-05-01 16:54:57 -07:00
Manish Goregaokar
4aab003b60
Rollup merge of #24998 - steveklabnik:fix_links, r=alexcrichton
...
r? @alexcrichton
2015-05-01 20:20:20 +05:30
Manish Goregaokar
0855b7c8b5
Rollup merge of #24994 - steveklabnik:gh24977, r=alexcrichton
...
Fixes #24977
2015-05-01 20:20:20 +05:30
Manish Goregaokar
d3b7c5258f
Rollup merge of #24992 - steveklabnik:gh24730, r=alexcrichton
...
Fixes #24730
r? @alexcrichton
2015-05-01 20:20:20 +05:30
Manish Goregaokar
4fda7e8b38
Rollup merge of #24991 - steveklabnik:gh24852, r=alexcrichton
...
First, a link was broken.
Second, the wording was a bit unclear, so I fixed it up.
Fixes #24852
2015-05-01 20:20:19 +05:30
Manish Goregaokar
42fbcf3525
Rollup merge of #24982 - poga:fix-incorrect-doc-formatting, r=steveklabnik
...
Fix incorrect link tag formatting in `doc/trpl/nightly-rust.md`. Notice the last word of the paragraph.
Before:

After:

2015-05-01 20:20:19 +05:30
Manish Goregaokar
70020aa066
Rollup merge of #24981 - carols10cents:remove-more-priv, r=alexcrichton
...
Hi! While researching stuff for the reference and the grammar, I came across a few mentions of using the `priv` keyword that was removed in 0.11.0 (#13547 , #8122 , rust-lang/rfcs#26 , [RFC 0026](https://github.com/rust-lang/rfcs/blob/master/text/0026-remove-priv.md )).
One occurrence is a mention in the reference, a few are in comments, and a few are marking test functions. I left the test that makes sure you can't name an ident `priv` since it's still a reserved keyword. I did a little grepping around for `priv `, priv in backticks, `Private` etc and I think the remaining instances are fine, but if anyone knows anywhere in particular I should check for any other lingering mentions of `priv`, please let me know and I would be happy to! 🍂 🌊
2015-05-01 20:20:18 +05:30
Steve Klabnik
585c7e2a0a
Fix broken links in the book.
2015-04-30 16:00:44 -04:00
Steve Klabnik
8c38dfd537
Describe (a,) vs (a) in docs
...
Fixes #24730
2015-04-30 15:10:58 -04:00
Steve Klabnik
0b06fd70c8
Fix code sample, remove unstable code
...
Fixes #24977
2015-04-30 14:17:56 -04:00
Steve Klabnik
91e5481218
Fix two issues with TRPL: unsized types
...
First, a link was broken.
Second, the wording was a bit unclear, so I fixed it up.
Fixes #24852
2015-04-30 13:41:26 -04:00
bors
2568a4d8c5
Auto merge of #24924 - carols10cents:grammar-improvements, r=pnkfelix
...
I'm interested in helping out with #16676 but more in the grammar than the reference-- here's my first chunk, more to come!! 🎉
I did pull a bit *out* of the reference, though, that was more relevant to the grammar but wasn't moved over as part of #24729 .
I'm looking at, e.g. https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs , as the source of truth, please let me know if I should be checking against something else instead/in addition.
r? @steveklabnik
2015-04-30 17:07:14 +00:00
Poga Po
8a20b994ea
remove newline within link tag
2015-04-30 21:28:49 +08:00