summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2015-06-23Auto merge of #26508 - tshepang:stray-code-block, r=blussbors-5/+0
2015-06-23Auto merge of #26367 - tshepang:patch-1, r=blussbors-1/+1
2015-06-22Use a more descriptive variable name.Jake Hickey-3/+3
I'm currently reading the rust book and this variable name tripped me up. Because it was called "input", I thought at first it might contain the line read by read_line(). This new variable name will be more instructive to rust beginners.
2015-06-22book: remove a stray code blockTshepang Lekhonkhobe-5/+0
2015-06-22Auto merge of #26037 - nhowell:plain_js_playpen, r=steveklabnikbors-1/+0
Since the "Book" already avoids jQuery in its inline script tags and playpen.js is tiny, I figured I would convert it to plain old JS as well. Side note: This is a separate issue, but another thing I noticed in my testing is that the "⇱" character doesn't display correctly in Chrome on Windows 7. (Firefox and IE work fine; other browsers not tested) r? @steveklabnik Edit: Github didn't like the "script" tag above Edit 2: Actually, now IE seems to render "⇱" fine for me. Odd.
2015-06-20TRPL: FFI: address panicsSteve Klabnik-0/+34
Fixes #26443
2015-06-18Rollup merge of #26349 - petrochenkov:bitwise, r=steveklabnikManish Goregaokar-5/+7
I'm surprised that bitwise operators `&`, `|` and `^` are implemented for `bool` arguments, because inspection of boolean's bits is not something that should be encouraged and because `&&` -> `&` is a common typo, but if they are implemented, then their behavior should be documented.
2015-06-18Rollup merge of #26342 - steveklabnik:quix_reference_fix, r=alexcrichtonManish Goregaokar-3/+14
https://github.com/rust-lang/rust/pull/26323/files#r32503568
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-17style: typo fixTshepang Lekhonkhobe-1/+1
2015-06-17Document behavior of bitwise operators with boolean argumentsVadim Petrochenkov-5/+7
2015-06-16Auto merge of #24738 - joliv:patch-2, r=steveklabnikbors-2/+5
The "unit value" is a value of the "unit type," not the "unit value type." Regardless of correctness, this straight syntax is easier to grok. Part of #16676 Sorry if something's off here, it's my first pull request to rust!
2015-06-16One more consistency fix in the referenceSteve Klabnik-3/+14
https://github.com/rust-lang/rust/pull/26323/files#r32503568
2015-06-16Auto merge of #26323 - steveklabnik:gh26320, r=alexcrichtonbors-10/+9
Fixes #26320
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-15Add unit type info and update associated linkjoliv-2/+5
Fixes #25244
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-15Significantly simplify generic exampleSteve Klabnik-10/+9
Fixes #26320
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-12Convert playpen.js to plain JS.Nick Howell-1/+0
It is still compatible with IE9+. This removes the jQuery dependency from the "Book" entirely.
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-12[reference] Fix typo in extern fn sectionMatt Brubeck-1/+1
2015-06-12Rollup merge of #26231 - reem:patch-2, r=GankroManish Goregaokar-0/+1
r? @steveklabnik
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-11Add Terminal.com to the list of companies using rust in production.Jonathan Reem-0/+1
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-11Auto merge of #26212 - Manishearth:rollup, r=Manishearthbors-32/+28
- Successful merges: #26181, #26184, #26189, #26191, #26195, #26202 - Failed merges:
2015-06-11Explain the `--bin` flag more clearlyNathan Long-2/+1
2015-06-11Auto merge of #26172 - nham:add_E0116, r=alexcrichtonbors-1/+1
Also improves the wording of the E0133 description. cc #24407
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-11Rollup merge of #26181 - Stebalien:fix-26178, r=steveklabnikManish Goregaokar-6/+4
The list of in-production users is probably incomplete. It's based on a [post](https://www.reddit.com/r/rust/comments/2x567m/who_is_using_rust_or_what_projects_that_are/cox7eby) by /u/mozilla_kmc closes #26178
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-10Rust is now post-1.0Steven Allen-6/+4
closes #26178