Manish Goregaokar
684cd77222
Rollup merge of #23182 - steveklabnik:gh22610, r=Manishearth
...
Fixes #22610
2015-03-09 00:35:38 +05:30
Manish Goregaokar
10960d3043
Rollup merge of #23188 - steveklabnik:gh18787, r=alexcrichton
...
Fixes #18787
2015-03-09 00:11:48 +05:30
Manish Goregaokar
b515b4e28a
Rollup merge of #23184 - steveklabnik:gh22553, r=alexcrichton
...
Fixes #22553
2015-03-09 00:10:06 +05:30
Manish Goregaokar
c7d5354567
Rollup merge of #23181 - steveklabnik:gh22637, r=alexcrichton
...
Fixes #22637
2015-03-09 00:09:56 +05:30
Manish Goregaokar
d1ac69ce72
Rollup merge of #23180 - steveklabnik:gh23052, r=alexcrichton
...
Fixes #23052
2015-03-09 00:08:03 +05:30
Manish Goregaokar
ea8434f7ee
Rollup merge of #23043 - steveklabnik:doc_default_method, r=nikomatsakis
2015-03-09 00:06:20 +05:30
Steve Klabnik
044b3bf2d7
Add examples of all three syntaxes in method syntax chapter of trpl
...
Fixes #18787
2015-03-08 10:49:13 -04:00
Steve Klabnik
d65064da34
Move 'more strings' after ownership
...
Fixes #22553
2015-03-08 09:34:03 -04:00
Steve Klabnik
5b0acb5846
remove 'generally' to reduce confusion
...
Fixes #22610
2015-03-08 09:29:47 -04:00
Steve Klabnik
ce223a62f1
Mention deref coercions in the String guide.
...
Fixes #22637
2015-03-08 09:25:50 -04:00
Steve Klabnik
e56fcbcd99
Remove reference to NoSend in concurrency chapter of the book
...
Fixes #23052
2015-03-08 09:15:06 -04:00
Steve Klabnik
de44baac8b
Add default methods to trait documentation
2015-03-08 08:55:17 -04:00
Ryan Prichard
52124d7c80
Fix #23166 . Get the Compiler Plugins example compiling again.
...
* "let met text" was previously of &String type. Now it is of &str type.
* Update the slicing syntax. Both &text[] and text.slice_from() evaluate
to a &str.
* We were passing a u32 to expr_usize. Call expr_u32 instead.
2015-03-07 22:58:28 -08:00
bors
36cd65f786
Auto merge of #22549 - steveklabnik:doc_documentation, r=huonw
...
This chapter covers writing documentation in depth.
Fixes #4361
Fixes #12862
Fixes #14070
Fixes #14967
2015-03-07 10:01:13 +00:00
Manish Goregaokar
e99b00f6c1
Rollup merge of #23039 - steveklabnik:doc_vec_macro, r=alexcrichton
2015-03-06 08:58:58 +05:30
Steve Klabnik
61a2766136
Note the alternate form of vec in trpl
2015-03-04 16:27:18 -05:00
Steve Klabnik
977d7897fe
TRPL: Documentation
...
This chapter covers writing documentation in depth.
Fixes #4361
Fixes #12862
Fixes #14070
Fixes #14967
2015-03-04 13:32:43 -05:00
Peter Elmers
299b594fde
Fix grammar nits in compound-data-types.md
...
I came across a couple of grammar mistakes when refreshing myself on enums.
2015-03-04 11:02:31 -06:00
Felix S. Klock II
cb1b0dd589
Fix doc example to accommodate overloaded-box.
2015-03-03 21:16:03 +01:00
David Mally
a457dd5c78
Changed wording to use Result instead of Option in several places, fixed example that actually does use an Option
2015-02-28 17:40:04 -05:00
Manish Goregaokar
fcd1c3699a
Rollup merge of #22866 - iKevinY:version-output-doc-fix, r=Manishearth
...
The format of `rustc --version` was changed in #21957 ; this PR updates TRPL accordingly.
2015-02-28 19:19:01 +05:30
Manish Goregaokar
37760c1f25
Rollup merge of #22875 - kmcallister:maceager, r=sfackler
...
MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
r? @sfackler
2015-02-28 19:18:59 +05:30
Keegan McAllister
f66a3f7bba
Replace MacExpr / MacPat / MacItems with MacEager
...
MacEager is a MacResult implementation for the common case where you've already
built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
2015-02-27 11:17:05 -08:00
Manish Goregaokar
c46fe78c32
Rollup merge of #22732 - jxcl:cargo-new, r=steveklabnik
...
r? @steveklabnik
2015-02-27 20:37:39 +05:30
Kevin Yap
9a4387fbe0
Update expected output of rustc --version
...
The format of `rustc --version` was changed in #21957 .
2015-02-27 03:13:05 -08:00
Manish Goregaokar
9692f3bc94
Rollup merge of #22635 - kmcallister:macros-chapter, r=steveklabnik
...
r? @steveklabnik
2015-02-25 10:27:03 +05:30
Keegan McAllister
848a7e6921
Enhance and move information about macro debugging
...
Fixes #22424 .
2015-02-24 16:34:18 -08:00
Keegan McAllister
df0865754e
Tweak wording in the macros guide
2015-02-24 16:28:54 -08:00
Keegan McAllister
1804242a2d
Add a second, more vexing section on recursive macros
...
Fixes #22423 .
2015-02-24 16:28:54 -08:00
Keegan McAllister
65e1e6bb94
Add a section on recursive macros
2015-02-24 16:28:54 -08:00
Manish Goregaokar
a429bf6a24
Rollup merge of #22458 - steveklabnik:try_in_error_chapter, r=alexcrichton
...
Fixes #22342
2015-02-25 03:21:30 +05:30
Vadim Petrochenkov
2807a1ce02
Use arrays instead of vectors in tests
2015-02-24 21:15:45 +03:00
Steve Klabnik
f31ea22bff
Mention try macro in error chapter
...
Fixes #22342
2015-02-24 12:31:46 -05:00
Manish Goregaokar
8e88762a83
Rollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik
...
Revised an example in the Pointers chapter of TRPL (the guide) as per #21575 .
2015-02-24 12:08:35 +05:30
Manish Goregaokar
9ed6c33391
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
2015-02-24 12:08:32 +05:30
Alexander Bliskovsky
f49fd40f20
Removed {}
and small wording fixes to "Hello Cargo!" chapter.
2015-02-23 16:38:11 -05:00
Alexander Bliskovsky
0685e7a185
Added section on cargo new
to "Hello Cargo!" chapter.
2015-02-23 16:29:28 -05:00
Manish Goregaokar
f73457a1cc
Rollup merge of #22612 - jxcl:iter-replace, r=steveklabnik
...
r? @steveklabnik
I've updated the iterators chapter to reflect the fact that you can now iterate over `for` loops without calling `.iter()`.
2015-02-23 23:28:47 +05:30
Manish Goregaokar
eb06c0ecd2
Rollup merge of #22593 - brson:spatch, r=steveklabnik
...
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Manish Goregaokar
0fab2b9535
Rollup merge of #22556 - brson:str, r=steveklabnik
...
Clarify that `to_string` is how you make `String`. Use a coercion in an example.
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Steve Klabnik
1049e88d1f
Static and dynamic dispatch: missing word
2015-02-23 11:27:11 -05:00
Alexander Bliskovsky
9f2b0671f8
Fixed erroneous statements in iterators.md.
2015-02-22 20:26:54 -05:00
Alexander Bliskovsky
72eaf2c30e
Switch to &vector notation in the iterators chapter.
2015-02-22 20:26:54 -05:00
Manish Goregaokar
a9570e5549
Rollup merge of #22625 - inrustwetrust:dispatch-doc-grammar, r=huonw
...
As far as I could tell from discussions in other docs pull requests, American spelling is preferred for the docs?
2015-02-22 01:49:46 +05:30
Manish Goregaokar
b7ac60a2f1
Rollup merge of #22524 - stevencrockett:master, r=steveklabnik
...
The text is referring to the io module despite the code using the old_io module.
2015-02-22 01:47:14 +05:30
Manish Goregaokar
9d650ae723
Rollup merge of #22515 - adamhjk:add-else-if-to-docs, r=steveklabnik
...
Adds an example of `else if` to the If section of The Rust Programming
Language.
r? @steveklabnik
2015-02-22 01:46:42 +05:30
Manish Goregaokar
11c70a3b09
Rollup merge of #22267 - steveklabnik:fix_lie, r=Gankro
...
Otherwise, this line is a lie.
2015-02-22 01:46:03 +05:30
inrustwetrust
1b20767460
Minor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc
2015-02-21 11:50:25 +01:00
Brian Anderson
fcc21b36a3
docs: Explain static dispatch advantage more clearly
2015-02-20 11:41:39 -08:00
Brian Anderson
96be55376e
book: Minor clarifications about strings
2015-02-19 18:39:38 -08:00