Matthew Jasper
e091c57e7d
Improve Compound assignments
...
* Explain overloading
2017-03-13 19:49:21 +00:00
Matthew Jasper
5e4a95864c
Remove an unnecessary new blank line in an example
2017-03-13 19:44:56 +00:00
Matthew Jasper
bcbba66b54
Improve binary operators
...
* Built in operators don't use traits.
* Explain that the type of right shift depends on the type.
2017-03-13 19:40:43 +00:00
Matthew Jasper
837b41fb10
Merge operators
2017-03-13 19:03:51 +00:00
Matthew Jasper
4853a00208
More wrapping changes
2017-03-13 19:02:43 +00:00
Matthew Jasper
29af6c49e7
Improve unary operators
...
* Explained `std::ops::Neg`.
* Hopefully made it clearer how `Deref` works
* Explained `std::ops::Not`.
* Say that `&mut` can't be applied to everything.
2017-03-13 19:01:00 +00:00
Matthew Jasper
710504802b
Improve index expressions
...
* Specify how overloading is done.
* Indices must be of type `usize`.
2017-03-13 18:38:48 +00:00
Matthew Jasper
c2e6797358
Explain method call resolution
2017-03-13 18:37:33 +00:00
Matthew Jasper
f8b3af3b03
Expand and correct the array expressions section.
...
* Explain what arrays expressions do.
* `static`s aren't constant expressions.
* Explain `Copy` requirement.
2017-03-13 16:21:40 +00:00
Matthew Jasper
e92490137e
Some more corrections to lambda expressions
...
* Parameters are patterns, not idents.
* Make it clear that inference can be done on just some of the parameters
2017-03-13 15:56:20 +00:00
Matthew Jasper
c993ff9e42
Make 'identifier's into links.
2017-03-13 15:52:50 +00:00
Matthew Jasper
2ca41c6d61
Clean up sections on methods and functions
...
* Add examples for methods
* Show the syntax for calling a struct field
* Explain the function call syntax
* Mention `Fn` traits
* Move lambda section
* Lambdas have unique types
* `move` is part of the lambda expression according to libsyntax
* Explain that `move` can extend the lifetime of the closure
* Use closure, except when followed by 'expression'
* Closure traits depend on how captures are used, not on how they are captured
2017-03-13 15:50:34 +00:00
Matthew Jasper
7e33fb9660
Alway wrap text in expressions.md at 80 characters
2017-03-13 12:59:53 +00:00
Steve Klabnik
09c895e14b
Merge pull request #1 from golddranks/master
...
Reworded the rule about accessing public items.
2017-03-07 06:21:51 -08:00
Pyry Kontio
047df64e72
Reworded the rule about accessing public items.
2017-03-07 15:54:50 +02:00
Matthew Jasper
3063893022
Add highlighting to one more block
2017-03-07 13:53:20 +00:00
Matthew Jasper
eac6dbd3a4
Highlighting in visibility-and-privacy.md
2017-03-05 09:58:53 +00:00
Matthew Jasper
03c52c4753
Highlighting in variables.md
2017-03-05 09:58:06 +00:00
Matthew Jasper
54a78d38a6
Don't ignore working example in types.md
2017-03-05 09:57:34 +00:00
Matthew Jasper
abd046bdb2
Highlighting in types.md
2017-03-05 09:55:45 +00:00
Matthew Jasper
c268823c56
Highlighting in tokens.md
...
Note that raw byte strings are a little buggy
2017-03-05 09:54:10 +00:00
Matthew Jasper
adf050d97e
Highlighting in subtyping.md
2017-03-05 09:47:06 +00:00
Matthew Jasper
7249de7c28
Consistency for paths.md
...
No change to actual appearance
2017-03-05 09:46:31 +00:00
Matthew Jasper
2bcaa80d31
Don't ignore example that only gives warnings
2017-03-05 09:36:12 +00:00
Matthew Jasper
1b4c225fc2
Highlighting in attributes.md
2017-03-05 09:35:16 +00:00
Matthew Jasper
e49cc24249
Highlighting in expressions.md
2017-03-05 09:30:11 +00:00
Paul Merrill
2d23ea601f
doc: Use "macOS" terminology consistently
...
One line in the documentation used the term macOS while the other six
used OSX. Be consistent and use the name current product brand of macOS.
2017-03-02 14:57:38 -08:00
Steve Klabnik
1b8cf5f6a8
get linkcheck clean
2017-03-02 14:57:38 -08:00
Steve Klabnik
1b3af93b74
Add footnote style.
...
Until https://github.com/azerupi/mdBook/issues/210 is resolved,
we'll import the css file.
2017-03-02 14:57:38 -08:00
Steve Klabnik
605fe07056
Get linkchecker clean
...
This affects the book, some missed things in the reference, the grammar,
and the standard library. Whew!
2017-03-02 14:57:38 -08:00
Steve Klabnik
57855cee97
statements and expressions
2017-03-02 14:57:38 -08:00
Steve Klabnik
4dc7436121
types
2017-03-02 14:57:38 -08:00
Steve Klabnik
2586d51670
memory model
2017-03-02 14:57:38 -08:00
Corey Farwell
14607cf7b1
Items
2017-03-02 14:57:37 -08:00
Steve Klabnik
74391a6289
linkage
2017-03-02 14:57:37 -08:00
Steve Klabnik
7cc94cc63c
unsafety
2017-03-02 14:57:37 -08:00
Steve Klabnik
6211856398
influences
2017-03-02 14:57:37 -08:00
Corey Farwell
d3b6fef6d0
Items and attributes
2017-03-02 14:57:37 -08:00
Corey Farwell
ad823ee894
Crates and source files
2017-03-02 14:57:37 -08:00
Corey Farwell
abebde7580
Procedural macros
2017-03-02 14:57:37 -08:00
Corey Farwell
c1af0ce1a4
Macros By Example
2017-03-02 14:57:37 -08:00
Corey Farwell
7eedfb6d27
Macros
2017-03-02 14:57:37 -08:00
Corey Farwell
46506d87fb
Paths
2017-03-02 14:57:37 -08:00
Corey Farwell
996e55732b
Tokens
2017-03-02 14:57:37 -08:00
Corey Farwell
d21a0ef0b0
Comments
2017-03-02 14:57:36 -08:00
Corey Farwell
888ef64abd
Identifiers
2017-03-02 14:57:36 -08:00
Corey Farwell
53586e1060
String table productions
2017-03-02 14:57:36 -08:00
Corey Farwell
90273bff06
Unicode productions
2017-03-02 14:57:36 -08:00
Corey Farwell
24007ed4cc
Introduction
2017-03-02 14:57:36 -08:00
Steve Klabnik
3461ff1feb
clean up some things
...
I double checked that everything is here and in the correct order; this fixes things up
2017-03-02 14:57:36 -08:00
Steve Klabnik
4a2bdf896c
Start the port of the reference to mdBook
...
This only really moves the files, there's a lot more work coming
in the next commits.
Part of #39588 .
2017-03-02 14:57:36 -08:00