about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-06-22book: remove a stray code blockTshepang Lekhonkhobe-5/+0
2015-06-22book: whitespaceTshepang Lekhonkhobe-1/+1
2015-06-22book: fix sentenceTshepang Lekhonkhobe-2/+4
2015-06-20TRPL: FFI: address panicsSteve Klabnik-0/+34
Fixes #26443
2015-06-17Auto merge of #26315 - steveklabnik:gh26287, r=alexcrichtonbors-1/+1
The font can make this hard to read, and we don't even strictly need the annotation, so let's just remove it Fixes #26287
2015-06-16Auto merge of #26318 - steveklabnik:gh26268, r=alexcrichtonbors-2/+2
Fixes #26268
2015-06-16Auto merge of #26317 - steveklabnik:gh25956, r=alexcrichtonbors-4/+0
It isn't really neccesary, but is pretty dense. Fixes #25956
2015-06-15Auto merge of #26311 - jooert:fix25855, r=steveklabnikbors-33/+13
Use result of the computation to prevent the compiler from optimising too much. Change `_x` to `x` and therefore remove the paragraph about the underscore. Fixes #25855. r? @steveklabnik
2015-06-15Clarify that the following will errorSteve Klabnik-2/+2
Fixes #26268
2015-06-15Remove confusing paragraph from Trait ObjectsSteve Klabnik-4/+0
It isn't really neccesary, but is pretty dense. Fixes #25956
2015-06-15Update example in "Rust Inside Other Languages"Johannes Oertel-33/+13
Use result of the computation to prevent the compiler from optimising too much. Change `_x` to `x` and therefore remove the paragraph about the underscore. Fixes #25855.
2015-06-15remove confusing 1i32Steve Klabnik-1/+1
The font can make this hard to read, and we don't even strictly need the annotation, so let's just remove it Fixes #26287
2015-06-13Rollup merge of #26257 - Tonkpils:patch-1, r=alexcrichtonManish Goregaokar-1/+1
2015-06-13Rollup merge of #26256 - steveklabnik:gh25915, r=alexcrichtonManish Goregaokar-1/+1
Fixes #25915
2015-06-13Rollup merge of #26255 - steveklabnik:gh25499, r=alexcrichtonManish Goregaokar-6/+5
Fixes #25499
2015-06-13Auto merge of #26118 - tshepang:define-trait, r=steveklabnikbors-0/+3
I saw a variation of this definition in [an article](http://pcwalton.github.io/blog/2012/08/08/a-gentle-introduction-to-traits-in-rust) by @pcwalton.
2015-06-13Auto merge of #26108 - Marwes:field_pun_docs, r=steveklabnikbors-3/+18
Adds a mention for the short form pattern syntax. Now without creating a PR to my own fork! #25779
2015-06-12usize -> u32 to match previous exampleLeo Correa-1/+1
2015-06-12Fix up wording in lifetime elision docsSteve Klabnik-1/+1
Fixes #25915
2015-06-12Remove unstable feature from TRPL: iteratorsSteve Klabnik-6/+5
Fixes #25499
2015-06-12Mention the short form pattern syntax in the bookMarkus Westerlind-3/+18
Explains short form pattern syntax and then introduces the longer pattern matching as a rebinding of the fields instead. #25779
2015-06-12Rollup merge of #26229 - Stebalien:versionless-book, r=steveklabnikManish Goregaokar-7/+5
They're forever doomed to be out-of-date. Also, don't assume the user is installing a particular version. r? @steveklabnik
2015-06-12Rollup merge of #24495 - nathanl:nathanl-explain-bin-flag, r=steveklabnikManish Goregaokar-2/+1
Explain the --bin flag in terms of the difference between shipping binary and library code I'm not sure if my explanation is even quite correct, but as a newbie coming from Ruby, this is my best guess. (In Rubyland, libraries always ship with the source code because there's no other form you can ship. :) )
2015-06-11Don't link to specific versions of rust in the book.Steven Allen-7/+5
They're forever doomed to be out-of-date. Also, don't assume the user is installing a particular version.
2015-06-11Explain the `--bin` flag more clearlyNathan Long-2/+1
2015-06-11Rollup merge of #26191 - jimblandy:master, r=steveklabnikManish Goregaokar-26/+24
In the discussion of returning closures, it seems like the example code got simplified, but only the later copies got fixed. The final working code has `factory` returning `|x| x + num`, but the earlier code has `|x| vec.push(x)`. The first form seemed to have more distracting characteristics, and the code wasn't right anyway, so I changed them to all use the second form, and updated the error messages. r? @steveklabnik
2015-06-10Fix examples for returning closures.Jim Blandy-26/+24
2015-06-10Rollup merge of #26174 - mcast:trpl-assignment-empty-tuple, r=steveklabnikManish Goregaokar-1/+3
Doc patch for #26120. Extra words here, because "value" is repeated. I haven't read about whether/how it should go to stable (sorry), but I think it would help newcomers. Thanks,
2015-06-10Rollup merge of #26146 - steveklabnik:remove_unsafe_pointer, r=GankroManish Goregaokar-5/+5
Using two terms for one thing is confusing, these are called 'raw pointers' today.
2015-06-10Rollup merge of #26145 - steveklabnik:gh25853, r=brsonManish Goregaokar-0/+24
Fixes #25853
2015-06-10Rollup merge of #26142 - steveklabnik:gh25850, r=GankroManish Goregaokar-0/+42
Fixes #25850
2015-06-10mend bad MarkdownMatthew Astley-1/+1
2015-06-10trpl: why (assignment == empty tuple) #26120Matthew Astley-1/+3
2015-06-09Rollup merge of #26144 - steveklabnik:static_doc_fix, r=alexcrichtonSteve Klabnik-1/+4
Fixes #25851 I am 99% sure this is true for all `static`s and not just `static mut`, yes?
2015-06-09Rollup merge of #26140 - steveklabnik:gh25803, r=alexcrichtonSteve Klabnik-2/+2
As this example got changed, we stopped showing how to return self as the first example, so this text is outdated. Fixes #25803
2015-06-09Rollup merge of #26136 - steveklabnik:gh25597, r=alexcrichtonSteve Klabnik-3/+7
Fixes #25597
2015-06-09Rollup merge of #26134 - steveklabnik:gh25586, r=alexcrichtonSteve Klabnik-2/+4
After talking with @graydon on #rust-internals, this is hopefully clarifying. Fixes #25586 @mkpankov, what do you think?
2015-06-09Rollup merge of #26133 - steveklabnik:gh25573, r=alexcrichtonSteve Klabnik-4/+0
This obscures more than it helps. Fixes #25573
2015-06-09Rollup merge of #26129 - steveklabnik:gh26012, r=brsonSteve Klabnik-0/+25
Fixes #26012
2015-06-09Exise 'unsafe pointer' in favor of 'raw pointer'Steve Klabnik-5/+5
Using two terms for one thing is confusing, these are called 'raw pointers' today.
2015-06-09make note of slicing syntax in TRPL: stringsSteve Klabnik-0/+24
Fixes #25853
2015-06-09Make note about static and dtorsSteve Klabnik-1/+4
Fixes #25851
2015-06-09Mention that enum constructors are functionsSteve Klabnik-0/+42
Fixes #25850
2015-06-09Fix some copyediting in TRPL: method-syntaxSteve Klabnik-2/+2
As this example got changed, we stopped showing how to return self as the first example, so this text is outdated. Fixes #25803
2015-06-09Explain interaction with if and | in patternsSteve Klabnik-0/+25
Fixes #26012
2015-06-09Expand a bit on clone() in Dining PhilosophersSteve Klabnik-3/+7
Fixes #25597
2015-06-09Clarify confusing sentence in TRPL: FFISteve Klabnik-2/+4
After talking with @graydon on #rust-internals, this is hopefully clarifying. Fixes #25586
2015-06-09remove stuff about #defineSteve Klabnik-4/+0
This obscures more than it helps. Fixes #25573
2015-06-09Semantic accuracy in borrow scope rules.simplex-3/+3
The text claimed 'any borrow must last for a _smaller_ scope than the owner', however the accurate way of describing the comparison is inclusive (i.e., 'less than or equal to' vs. 'less than').
2015-06-09book: define traitTshepang Lekhonkhobe-0/+3