- 11 5月, 2015 40 次提交
-
-
由 Manish Goregaokar 提交于
Hiiii, I've got another chunk of updates to the grammar documentation!
⭐ 🌟 🌠 Chipping away at #22445, still have some more to go. I'm learning so much!!! -
由 Manish Goregaokar 提交于
Maybe it's me, but I really needed an example to understand if let and refutable statements. Playpen: http://is.gd/mjX3Gf Let me know if the variable names are too, uh, culinary.
-
由 Manish Goregaokar 提交于
Several Minor API / Reference Documentation Fixes - Fix a few small errors in the reference. - Fix paper cuts in the API docs. Fixes #24882 Fixes #25233 Fixes #25250
-
由 Manish Goregaokar 提交于
-
由 Manish Goregaokar 提交于
The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time. For the changed example see http://is.gd/28ak9E Also fixed a minor grammar issue.
-
由 Manish Goregaokar 提交于
Noticed this while perusing the docs
-
由 Manish Goregaokar 提交于
-
由 bors 提交于
r? @steveklabnik
-
由 bors 提交于
-
由 bors 提交于
This avoids a crash on windows Closes #25265
-
由 bors 提交于
There were still some mentions of `~[T]` and `~T`, mostly in comments and debugging statements. I tried to do my best to preserve meaning, but I might have gotten some wrong-- I'm happy to fix anything :)
-
由 Carol Nichols 提交于
Between ffc5f1cc, when grammar.md was created by copying parts of the reference, and 8cf25526, when all EBNF was removed from reference.md, there were parts of the grammar that were updated in reference.md but not grammar.md, and then they weren't copied over because they existed already, but they were slightly out of date. Example: the `path_item : ident | "self" ;` rule in Use declarations was changed from "mod" to "self" in the reference in 195fd9a2 but wasn't updated in the grammar.
-
由 Carol Nichols 提交于
Both external crate declarations and use declarations need to end with a semicolon.
-
由 Carol Nichols 提交于
-
由 Carol Nichols 提交于
-
由 Carol Nichols 提交于
Some of this text is duplicated in the reference (and belongs there) so remove it. It says item grammar is the same, so point to that grammar section.
-
由 Carol Nichols 提交于
The syntax for re-exporting privacy is covered in the use declaration item.
-
由 Carol Nichols 提交于
Namely an optional "pub" before any item. The "pub" in the Use declaration section should use this too.
-
由 Ulrik Sverdrup 提交于
-
由 Ulrik Sverdrup 提交于
-
由 Ulrik Sverdrup 提交于
Fixes #25233
-
由 Ulrik Sverdrup 提交于
Fixes #24882
-
由 Ulrik Sverdrup 提交于
Fixes #25250
-
由 bors 提交于
cc #19986
-
由 Johann 提交于
-
由 Johann Hofmann 提交于
-
由 Johann Hofmann 提交于
The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time. For the changed example see http://is.gd/28ak9E
-
由 Pete Hunt 提交于
-
由 Pete Hunt 提交于
-
由 Tshepang Lekhonkhobe 提交于
-
由 bors 提交于
- Successful merges: #24948, #25158, #25188, #25222, #25239, #25240, #25241, #25255, #25257, #25263 - Failed merges:
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
I think there's a trivial missing word in the Mutability document. I reformatted the resulting paragraph in vim, which seems to match what the rest of the document is doing as far as word wrapping. Edit: I found another minor thing as I continued reading. P.S. I'm re-reading the docs, since so much has changed since my first read, and they've gotten even better! Nice job! r? @steveklabnik
-
由 Steve Klabnik 提交于
Add a few diagnostic messages; part of #24407.
-
由 Steve Klabnik 提交于
The start of the last text block in references was missing, I added it. r? @steveklabnik
-
由 Steve Klabnik 提交于
Add example for HashMap::entry()
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
r? @steveklabnik
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
I was profiling my code again and this time AsRef<str> for String was eating up a considerable chunk of my runtime; adding the inline annotation made the program run almost twice as fast! While I was at it I also added the annotation to other implementations of AsRef as well as AsMut.
-