Sandeep Datta
1536195ce6
Made v2 mutable so that we can actually truncate it.
2016-02-17 20:47:24 +05:30
Sandeep Datta
37a952a672
Fixed build error as per steveklabnik's suggestion and expanded on the ills of doing out of bounds accesses.
2016-02-13 18:40:24 +05:30
Sandeep Datta
a6fedc85bf
Minor change.
2016-02-11 19:55:45 +05:30
Sandeep Datta
a8fd1bbd2f
Minor change.
2016-02-11 19:44:33 +05:30
Sandeep Datta
50d179e062
Explained the data race with an example.
2016-02-11 19:40:19 +05:30
Sandeep Datta
62b3b40ade
Clarified move semantics in "the details" section.
2016-02-11 12:30:53 +05:30
Steve Klabnik
6571ae28a8
Rollup merge of #31514 - cgar:spelling, r=alexcrichton
2016-02-09 16:58:59 -05:00
Carlos E. Garcia
02aa0aff2f
Minor spelling fixes
2016-02-09 11:52:39 -05:00
Andrew Barchuk
422cf2d34a
Clean up Error Handling case study examples
...
Remove unnecessary cloning and conversions. Expand tabs left in examples.
2016-02-07 23:08:46 +02:00
Simonas Kazlauskas
432460a6fc
Synthesize calls to box_free language item
...
This gets rid of Drop(Free, _) MIR construct by synthesizing a call to language item which
takes care of dropping instead.
2016-02-04 15:56:01 +02:00
Manish Goregaokar
1a21dabf27
Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnik
...
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-03 02:54:25 +05:30
Manish Goregaokar
86650211a9
Rollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakis
...
Fixes #31154
2016-02-03 02:54:25 +05:30
Steve Klabnik
6c907212b4
Add note about temporaries
2016-02-02 11:15:45 -05:00
Paul Smith
b2e887f0aa
Fix reference to expect
...
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-02 08:47:23 -06:00
Steve Klabnik
c3f6122215
Rollup merge of #31348 - alexcrichton:shuffle-tiers, r=steveklabnik
...
Some other shufflings as well:
* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3
We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.
2016-02-02 00:32:20 -05:00
Steve Klabnik
5f0d8ea1bd
Rollup merge of #31345 - kamalmarhubi:book-docs-special-section-errors, r=steveklabnik
...
This matches the usage in the standard library's documentation.
2016-02-02 00:32:19 -05:00
Steve Klabnik
9eb417b17f
Rollup merge of #31344 - steveklabnik:gh31334, r=alexcrichton
...
Fixes #31334
This is just a quicker fix for this issue; since I'm working on the next draft of the book, I don't want to put a huuuge amount of work into improving it here.
2016-02-02 00:32:19 -05:00
Steve Klabnik
0b8c71379c
Rollup merge of #31340 - pra85:patch-1, r=alexcrichton
...
Spelling mistake -
`familliar` > `familiar`
2016-02-02 00:32:19 -05:00
Steve Klabnik
78afc78d9d
Rollup merge of #30971 - SDX2000:docfixes, r=steveklabnik
...
Updated documentation to clarify the difference between `and_then` and `map`. This also explains why we need `and_then` in addition to `map`. Please look at the diff for more information.
r? @alexcrichton
2016-02-02 00:32:17 -05:00
Steve Klabnik
dc3a39d807
Explain behavior of _
...
Fixes #31154
2016-02-01 18:49:47 -05:00
Alex Crichton
0574b395ef
doc: Move 32-bit MSVC to a tier 1 platform
...
Some other shufflings as well:
* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3
We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.
2016-02-01 12:53:38 -08:00
Kamal Marhubi
49fe519791
book: Change "Failures" to "Errors" in doc special sections chapter
...
This matches the usage in the standard library's documentation.
2016-02-01 12:26:51 -05:00
Steve Klabnik
7df3bf1860
make this example more obvious
...
Fixes #31334
2016-02-01 12:19:33 -05:00
Prayag Verma
2043cd8623
Fix typo in doc/book/getting-started.md
...
Spelling mistake -
`familliar` > `familiar`
2016-02-01 12:15:33 +05:30
Manish Goregaokar
f66d3c5566
Rollup merge of #31296 - steveklabnik:gh31249, r=alexcrichton
...
Rustdoc will automatically wrap things in main, but this doesn't work
here.
Fixes #31249
2016-01-30 17:57:17 +05:30
Manish Goregaokar
cf0f7a30f4
Rollup merge of #31295 - steveklabnik:gh31266, r=alexcrichton
...
These are free functions in the text, but methods in the standard
library.
Fixes #31266
2016-01-30 17:57:17 +05:30
Sandeep Datta
0922d7e68f
Ignoring demo code with compilation error.
2016-01-30 13:43:02 +05:30
Steve Klabnik
919ea47356
Add main() so that examples work
...
Rustdoc will automatically wrap things in main, but this doesn't work
here.
Fixes #31249
2016-01-29 17:53:35 -05:00
Steve Klabnik
a2c328661b
Make note that this is different in std
...
These are free functions in the text, but methods in the standard
library.
Fixes #31266
2016-01-29 17:48:22 -05:00
Steve Klabnik
24c928b99a
Fix number of methods in guessing game
...
This code was refactored, but the words were not
Fixes #31284
2016-01-29 17:45:05 -05:00
bors
035f4cca00
Auto merge of #31240 - durka:follow-set-docs, r=pnkfelix
...
Missed as part of #31152 , but the list had other mistakes as well.
r? @pnkfelix
2016-01-28 07:06:29 +00:00
Manish Goregaokar
5e7dfa7094
Rollup merge of #31226 - steveklabnik:gh30954, r=Manishearth
...
Fixes #30954
2016-01-28 00:48:32 +05:30
Manish Goregaokar
d7c57e1fdd
Rollup merge of #31222 - durka:patch-15, r=steveklabnik
...
r? @steveklabnik
2016-01-28 00:48:32 +05:30
Manish Goregaokar
b29628ac91
Rollup merge of #30689 - Manishearth:lifetime-bound, r=steveklabnik
...
We should have stuff on this in the book somewhere too
r? @steveklabnik
2016-01-28 00:48:31 +05:30
Alex Burka
fd4d013a2c
trpl: fix macro follow sets
2016-01-27 13:26:47 -05:00
Steve Klabnik
5c61be68d0
Mention that globs import public symbols
...
Fixes #30954
2016-01-26 17:47:01 -05:00
Alex Burka
2f633b2204
capitalization and associated types
2016-01-26 14:36:48 -05:00
Alex Burka
638555e64d
book: cover UFCS in Syntax Index
2016-01-26 13:43:43 -05:00
Manish Goregaokar
486fd89b34
Rollup merge of #31199 - steveklabnik:gh31181, r=Manishearth
...
Fixes #31181
2016-01-26 13:11:58 +05:30
Manish Goregaokar
24931a32e8
Rollup merge of #31197 - apasel422:issue-31195, r=steveklabnik
...
Closes #31195
r? @steveklabnik
2016-01-26 13:11:57 +05:30
Steve Klabnik
6c56260b30
Mention the need for a linker
...
Fixes #31181
2016-01-25 22:26:56 -05:00
Andrew Paseltiner
b3ebe949e2
Fix typo in "Loops" section of the book
...
Closes #31195
2016-01-25 21:33:23 -05:00
Oliver Middleton
ace39cbc15
Replace link to learn-rust in the book
...
It was removed in #30595 .
Also delete the old learn-rust.md.
2016-01-25 18:40:28 +00:00
Oliver Middleton
03681b16ce
Fix link to hello-cargo in the book
...
It was moved in #29538 .
2016-01-25 18:34:34 +00:00
Dirk Gadsden
a469cef1ab
Clarify when Cargo.lock is created by cargo build in the book
...
Also remove a "finally" in the section about building for release
to make it feel a bit friendlier.
2016-01-23 23:39:38 -05:00
Steve Klabnik
4d99bad158
Rollup merge of #31145 - D101101:patch-1, r=steveklabnik
...
r? @steveklabnik
2016-01-23 09:38:44 -05:00
Steve Klabnik
fc8ef6cae7
Rollup merge of #31128 - kamalmarhubi:book-trait-impl-clarify, r=steveklabnik
2016-01-23 09:38:44 -05:00
Steve Klabnik
c9c754990e
Rollup merge of #31113 - steveklabnik:master, r=alexcrichton
...
r? @alexcrichton
2016-01-23 09:38:43 -05:00
Steve Klabnik
9bc29a9908
Rollup merge of #31111 - apasel422:issue-31103, r=steveklabnik
...
Closes #31103
r? @steveklabnik
2016-01-23 09:38:43 -05:00
Steve Klabnik
b4311b70e1
Rollup merge of #31061 - brson:bib, r=steveklabnik
2016-01-23 09:38:42 -05:00