| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
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.
|
|
|
|
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.
|
|
Fixes #26443
|
|
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.
|
|
https://github.com/rust-lang/rust/pull/26323/files#r32503568
|
|
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
|
|
|
|
|
|
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!
|
|
https://github.com/rust-lang/rust/pull/26323/files#r32503568
|
|
Fixes #26320
|
|
Fixes #26268
|
|
It isn't really neccesary, but is pretty dense.
Fixes #25956
|
|
Fixes #25244
|
|
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
|
|
Fixes #26320
|
|
Fixes #26268
|
|
It isn't really neccesary, but is pretty dense.
Fixes #25956
|
|
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.
|
|
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
|
|
|
|
Fixes #25915
|
|
Fixes #25499
|
|
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.
|
|
Adds a mention for the short form pattern syntax. Now without creating a PR to my own fork!
#25779
|
|
It is still compatible with IE9+.
This removes the jQuery dependency from the "Book" entirely.
|
|
|
|
Fixes #25915
|
|
Fixes #25499
|
|
Explains short form pattern syntax and then introduces the longer
pattern matching as a rebinding of the fields instead.
#25779
|
|
|
|
r? @steveklabnik
|
|
They're forever doomed to be out-of-date. Also, don't assume the user is
installing a particular version.
r? @steveklabnik
|
|
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. :) )
|
|
|
|
They're forever doomed to be out-of-date. Also, don't assume the user is
installing a particular version.
|
|
- Successful merges: #26181, #26184, #26189, #26191, #26195, #26202
- Failed merges:
|
|
|
|
Also improves the wording of the E0133 description.
cc #24407
|
|
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
|
|
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
|
|
|
|
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,
|
|
Using two terms for one thing is confusing, these are called 'raw pointers' today.
|
|
Fixes #25853
|
|
Fixes #25850
|
|
closes #26178
|