bors
ecdf792d1d
Auto merge of #23537 - steveklabnik:gh22551, r=alexcrichton
...
Fixes #22551
('grammar' wasn't really used in the chapter at all)
2015-03-20 15:02:55 +00:00
Steve Klabnik
af09763cc1
Add AST to the glossary
...
Fixes #22551
2015-03-20 10:55:51 -04:00
bors
cbc660bd1c
Auto merge of #23522 - steveklabnik:gh22518, r=Manishearth
...
When investigating #22518 , this chapter is really the only part that has `rand`, and the rest still works without it. We should have some examples like this, but for now, it's more important to be right than perfect.
2015-03-20 11:29:12 +00:00
Manish Goregaokar
0711006694
Rollup merge of #23532 - steveklabnik:gh22002, r=alexcrichton
...
Fixes #22002
2015-03-20 12:43:14 +05:30
Manish Goregaokar
dbe084b5bf
Rollup merge of #23447 - kjpgit:kjp/pointerexample, r=steveklabnik
...
These two borrowing examples were confusing/misleading. This changes it
to more clearly show how you _can_ borrow a box, and also uses & instead
of &*.
2015-03-20 12:43:12 +05:30
Steve Klabnik
d081b241ff
Reference Drop in FFI chapter
...
Fixes #22002
2015-03-19 18:11:35 -04:00
Steve Klabnik
109803f6d5
Remove incorrect statement about raw pointers.
...
Fixes #21709
2015-03-19 18:06:54 -04:00
Steve Klabnik
0249603c20
Remove the Guessing Game from the book
...
Fixes #22518
2015-03-19 15:19:20 -04:00
Manish Goregaokar
760f870add
Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichton
...
Fixes #21589
2015-03-19 08:49:38 +05:30
Steve Klabnik
70bf02994a
Note ::foo::bar() in the crates guide
...
Fixes #21589
2015-03-19 08:24:42 +05:30
Johannes Oertel
da96d22d3a
Rename should_fail to should_panic in docs
2015-03-19 08:24:38 +05:30
kjpgit
5429f94405
book: improve pointer box borrowing examples
...
These two borrowing examples were confusing/misleading. This changes it
to more clearly show how you _can_ borrow a box, and also uses & instead
of &*.
2015-03-17 11:52:14 -05:00
Tamir Duberstein
f5765793b6
Strip trailing whitespace
2015-03-15 11:25:43 -07:00
Tamir Duberstein
d51047ded0
Strip all leading/trailing newlines
2015-03-15 09:08:21 -07:00
Manish Goregaokar
d66d0b3ac2
Rollup merge of #23368 - EduardoBautista:fix-closures-chapter, r=steveklabnik
...
"body": null,
2015-03-15 10:23:45 +05:30
Manish Goregaokar
09e5a7a04e
Rollup merge of #23367 - EduardoBautista:fix-indentation-in-book, r=steveklabnik
...
It was using tabs.
2015-03-15 10:23:45 +05:30
Eduardo Bautista
7130c75e46
Concurrency is now in the "Concurrency" chapter
2015-03-14 14:05:59 -06:00
Eduardo Bautista
c8e4f61ad3
Fix indentation in the "Method Syntax" chapter
2015-03-14 13:27:44 -06:00
Ricardo Martins
cb02f366dc
Fix a typo in the documentation.
2015-03-14 12:42:12 +00:00
Trent Nadeau
ccfc381044
Fixed several grammar errors and broke up very long line.
2015-03-12 17:00:35 -04:00
Manish Goregaokar
3d70c7042c
Rollup merge of #23295 - johnz133:patch-1, r=steveklabnik
...
Changed the docs to reflect that
2015-03-12 09:14:59 +05:30
Manish Goregaokar
85d836a2b2
Rollup merge of #23279 - steveklabnik:gh23244, r=alexcrichton
...
Fixes #23244
2015-03-12 09:14:51 +05:30
Manish Goregaokar
497f6b77c3
Rollup merge of #23234 - Ms2ger:doc-dynamic-dispatch, r=steveklabnik
2015-03-12 09:13:58 +05:30
John Zhang
e3b717c7ce
Cargo build now builds to /target/debug/, changed the docs to reflect that.
...
Deleted trailing space in hello-cargo.md
Added note about build --release in hello-cargo
thanks to steven klabnik for pointing it out for me
edited out redundant wording
2015-03-11 19:46:55 -07:00
Steve Klabnik
64ab111b53
Example -> Examples
...
This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
2015-03-11 21:11:40 -04:00
Ms2ger
3ac89d372f
Rewrite the dynamic dispatch section to focus on usage rather than implementation.
2015-03-11 21:37:01 +01:00
Steve Klabnik
8934c9b560
Add note about local documentation installation
...
Fixes #23244
2015-03-11 13:45:55 -04:00
Manish Goregaokar
3e5f3b2350
Rollup merge of #23195 - steveklabnik:gh19808, r=alexcrichton
...
Fixes #19808
2015-03-10 14:59:46 +05:30
Steve Klabnik
bc927a69b2
Explain super in the crates guide.
...
Fixes #19808
2015-03-09 16:48:05 -04:00
Manish Goregaokar
3797827460
Fix doctest (fixup #23188 )
2015-03-09 10:16:34 +05:30
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