Tshepang Lekhonkhobe
dd78ffe828
reference: make 'Move and copied types' section more simple
2015-07-06 22:10:35 +02:00
Tshepang Lekhonkhobe
c2f4f11443
reference: do not display the extra space
2015-07-06 22:01:20 +02:00
Steve Klabnik
ee43c5e2f0
FFI panic is UB
...
I incorrectly stated that it's an abort.
2015-07-06 16:00:31 -04:00
Steve Klabnik
fb6eeb6ce8
Document _ in bindings
...
Fixes #25786
2015-07-06 12:27:32 -04:00
Liigo Zhuang
03afbf93ed
book: introduce //!
doc comment in comments section
...
Closes #26801
2015-07-06 14:55:06 +08:00
Steve Klabnik
d1fcb2f502
Rollup merge of #26808 - tshepang:closures, r=steveklabnik
2015-07-05 15:12:21 -04:00
Tshepang Lekhonkhobe
10e762eaad
reference: 'inherits' is more clear than 'implies'
2015-07-06 01:01:37 +02:00
Steve Klabnik
4c7c7b7477
Rollup merge of #26800 - tshepang:comma, r=Gankro
2015-07-05 15:12:20 -04:00
Steve Klabnik
8b51b8f181
Rollup merge of #26789 - tshepang:improve-array-examples, r=alexcrichton
2015-07-05 15:12:20 -04:00
Tshepang Lekhonkhobe
e08bb7f54c
reference: remove stray comma
2015-07-05 17:58:46 +02:00
Tshepang Lekhonkhobe
0d3954f4c5
reference: improve coercions section
2015-07-05 17:49:06 +02:00
Steve Klabnik
89d7dd1b33
Rollup merge of #26795 - tshepang:typo, r=steveklabnik
2015-07-05 07:35:16 -04:00
Tshepang Lekhonkhobe
a1dd2fb956
reference: fix typo
2015-07-05 16:36:43 +02:00
Steve Klabnik
9d23df481d
Rollup merge of #26792 - tshepang:follow-idiom, r=steveklabnik
2015-07-05 07:35:15 -04:00
Tshepang Lekhonkhobe
da90ddb5fd
reference: improve lambda example
2015-07-05 14:49:08 +02:00
Steve Klabnik
3b3cdb124a
Rollup merge of #26791 - tshepang:misc-ref-fixes, r=steveklabnik
...
One is for grammar, and the other is for clarity
2015-07-05 07:35:15 -04:00
Tshepang Lekhonkhobe
73c1f242e3
reference: tiny fixes
...
One is for grammar, and the other is for clarity
2015-07-05 14:45:55 +02:00
Steve Klabnik
a5f9162909
Rollup merge of #26788 - tshepang:not-exclamation-marks, r=steveklabnik
...
The sentences are also so short that they don't need periods at the end
2015-07-05 07:35:15 -04:00
Steve Klabnik
ec37d456aa
Rollup merge of #26787 - tshepang:tuple-usage, r=steveklabnik
2015-07-05 07:35:15 -04:00
Steve Klabnik
08395a9a06
Rollup merge of #26785 - tshepang:inference, r=steveklabnik
...
…at and integer types
2015-07-05 07:35:14 -04:00
Tshepang Lekhonkhobe
f82276d947
reference: improve examples of the different array types
2015-07-05 13:33:06 +02:00
Tshepang Lekhonkhobe
f76187c426
reference: that looks like exclamations marks for some fonts
...
The sentences are also so short that they don't need periods at the end
2015-07-05 13:16:33 +02:00
Tshepang Lekhonkhobe
72c027535a
reference: make tuple usage examples more meaningful
2015-07-05 13:04:04 +02:00
Tshepang Lekhonkhobe
4fc28c90f8
reference: improve readability of type inference explanations for float and integer types
2015-07-05 12:31:44 +02:00
Alex Newman
0b7c4f57f6
Add netbsd amd64 support
2015-07-01 19:09:14 -07:00
Vladimir Rutsky
dbaaa2c6a4
remove terminating dot from caption
2015-07-01 02:34:01 +03:00
Vladimir Rutsky
aacb5f68bf
add missing colon
2015-07-01 02:31:49 +03:00
Christian Weinz
e727dd5811
Update complement-design-faq.md
...
The ‘_‘ wildcard handles exactly not specific cases but all nut specified.
2015-06-30 17:02:10 -03:00
Steve Klabnik
bac361558e
Rollup merge of #26580 - adamheins:master, r=steveklabnik
...
I found a sentence that felt a bit awkward to read in its current form, so I added a comma to break it up.
2015-06-30 15:37:44 -04:00
Steve Klabnik
96dd82ff9c
Rollup merge of #26506 - tshepang:doc-fix, r=steveklabnik
2015-06-30 15:37:44 -04:00
bors
f39df49bcd
Auto merge of #26662 - steveklabnik:gh26661, r=alexcrichton
...
This is his own mirror, so it shouldn't go down, unlike the previous one.
Fixes #26661
2015-06-30 10:26:09 +00:00
bors
9a26e49459
Auto merge of #26660 - steveklabnik:fix_up_pointers, r=alexcrichton
...
This is a bit outdated.
2015-06-29 22:22:54 +00:00
Steve Klabnik
b1907a04e4
Update link to Ousterhout
...
This is his own mirror, so it shouldn't go down, unlike the previous one.
Fixes #26661
2015-06-29 17:06:23 -04:00
bors
f9b6929f46
Auto merge of #26623 - Saser:master, r=steveklabnik
...
In Chapter 5.9 (References and Borrowing), there is an example [at the very end](https://doc.rust-lang.org/stable/book/references-and-borrowing.html#use-after-free ) which shows that declaring a reference before declaring the variable that it points to results in a compilation error. The book does not really mention why this happens though -- in the sections before, it has described how different scopes affects the lifetime of resources, but there is no mention of how resources within the same scope work.
This confused me a little, so I asked on #rust and got the answer that the resources are destroyed in the reverse order that they are declared, but the book makes no mention of it (as far as I can find) -- except in Chapter 5.21 (Drop), where it says:
> When `x` goes out of scope at the end of `main()`, the code for `Drop` will run. `Drop` has one method, which is also called `drop()`. It takes a mutable reference to `self`.
>
> That’s it! The mechanics of `Drop` are very simple, but there are some subtleties. For example, values are dropped in the opposite order they are declared. [...]
---
I feel like Chapter 5.9 (References and Borrowing) is probably the best place to put this information (as I have done in my additions), since it deals with other types of referencing and borrowing. However, since English is not my native language, the wording of my additions perhaps are a little "off" -- any feedback on them is appreciated.
2015-06-29 19:19:31 +00:00
Steve Klabnik
8d6b5689fb
Change removal notice for pointer guide.
...
This is a bit outdated.
2015-06-29 15:18:00 -04:00
bors
216f6645ef
Auto merge of #26462 - brson:stdidx, r=steveklabnik
...
This is usually the link I want when I come to this page.
r? @steveklabnik
2015-06-29 15:46:35 +00:00
Christian Persson
d6159b7fe0
Clarifying deallocation order of resources within same scope
2015-06-27 16:58:18 +02:00
Alexis Beingessner
9001da658a
make book match reference
2015-06-26 12:06:05 -07:00
Alexis Beingessner
c98e46c7ca
accessing private fields is not safe, and io isn't scary
2015-06-26 11:44:02 -07:00
Adam Heins
35abf86a1b
Improve sentence flow.
2015-06-25 19:29:23 -04:00
Brody Holden
165a2817a4
Replace std::comm reference with std::sync::mpsc.
...
The FFI documentation references std::comm. Replace with
std::sync::mpsc.
Also wrap the line.
2015-06-24 20:08:55 -07:00
bors
4c7d53a202
Auto merge of #26529 - steveklabnik:gh26366, r=alexcrichton
...
Fixes #26366
2015-06-24 12:01:35 +00:00
bors
d278632fef
Auto merge of #26528 - brson:papers, r=alexcrichton
...
This adds all papers that mention Rust that I'm aware of. Includes some undergrad work.
2015-06-24 10:29:26 +00:00
bors
eeeda89e55
Auto merge of #26526 - djc:patch-1, r=steveklabnik
...
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-24 05:53:19 +00:00
bors
2d0cbf3e3e
Auto merge of #26509 - tshepang:4-and-not-3, r=bluss
2015-06-24 02:51:13 +00:00
Steve Klabnik
56fd31f9a4
Fix grammar in style guide on traits
...
Fixes #26366
2015-06-23 15:54:16 -07:00
Brian Anderson
913c51ab17
doc: Add newest Rust papers
2015-06-23 13:59:43 -07:00
Dirkjan Ochtman
5027c9f0d1
Add some more headers to installation documentations
...
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-23 21:31:07 +02:00
bors
27ecbba388
Auto merge of #26508 - tshepang:stray-code-block, r=bluss
2015-06-23 17:27:07 +00:00
bors
3223c885b9
Auto merge of #26367 - tshepang:patch-1, r=bluss
2015-06-23 14:24:10 +00:00