Brian Anderson
3d365f6a01
rustdoc: interpret all leading feature attributes in examples as crate attributes
...
This makes it possible to write `#![feature(foo)]` in doc tests.
2015-03-23 14:40:25 -07:00
Steve Klabnik
1be8fcb4a9
Make note of str in 'more strings' chapter
...
Fixes #21035
2015-03-23 14:57:52 -04:00
Steve Klabnik
05c9728c69
Don't conflate regions and affine types
...
Fixes #23642
2015-03-23 14:47:14 -04:00
Liam Monahan
558c427cd3
Fix a typo in the Rust Book ownership page.
2015-03-23 00:00:00 -04:00
Manish Goregaokar
b4e9106a8a
Rollup merge of #23590 - FuGangqiang:attr, r=alexcrichton
2015-03-23 04:54:27 +05:30
FuGangqiang
7ec80fa31c
add lifetime for while and for expression
2015-03-23 04:54:27 +05:30
FuGangqiang
5836efdfe7
fix the attributes sytax
2015-03-23 04:54:27 +05:30
Tshepang Lekhonkhobe
8a500dea0e
book: some Crates and Modules nits
2015-03-22 23:38:36 +02:00
Steve Klabnik
81801f2171
Re-word explanation on closures in intro
...
Fixes #23571
2015-03-22 15:40:46 -04:00
Steve Klabnik
fbc823d1e3
Document how to document macros
...
Fixes #23571
2015-03-22 15:26:23 -04:00
Ches Martin
92294e7aed
guide: Improvements to language covering enums
2015-03-21 05:32:26 +07:00
Ches Martin
0c040b07f0
guide: minor copy edits
2015-03-21 05:32:07 +07:00
Steve Klabnik
9acdcba3d5
Remove manual numbers from TRPL
...
Rustbook already does this.
2015-03-20 15:27:55 -04:00
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
Manish Goregaokar
fad4c380e8
Rollup merge of #23385 - tamird:cleanup-whitespace, r=alexcrichton
...
r? @alexcrichton
Conflicts:
src/test/run-pass/test-fn-signature-verification-for-explicit-return-type.rs
2015-03-17 15:21:22 +05:30
Manish Goregaokar
e8889c9404
Rollup merge of #23417 - padenot:patch-1, r=steveklabnik
...
This looks like the most logical target to give to this link, or at least what I would expect as someone that want to integrate with a native library.
r? @steveklabnik
2015-03-17 15:20:11 +05:30
Steve Klabnik
ac67729baf
Remove stdlib stuff from the Reference
...
Fixes #11794
2015-03-16 17:55:13 -04:00
Paul ADENOT
7dbcf08211
Fix 404 to crates.io's doc on integrating with a native toolchain
...
This looks like the most logical target to give to this link, or at least what I would expect as someone that want to integrate with a native library.
r? @steveklabnik
2015-03-16 19:56:14 +01:00
Nick Cameron
432011d143
Fallout in testing.
2015-03-16 11:03:54 +13: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
Jakub Bukaj
b3c58cffa4
Add the -s flag to the suggested rustup invocation
...
curl's progress meter would otherwise interfere with sudo's password prompt.
In addition, add the -f flag to make sure 4xx status codes are treated as errors.
2015-03-13 09:31:50 +01:00
Trent Nadeau
ccfc381044
Fixed several grammar errors and broke up very long line.
2015-03-12 17:00:35 -04:00
bors
206ee0e853
Auto merge of #23299 - mdinger:monospace_table, r=steveklabnik
...
The [literals table](http://doc.rust-lang.org/reference.html#characters-and-strings ) now looks ugly but compact. Add back the monospace text.
2015-03-12 13:47:20 +00:00
mdinger
fb0ee646e9
Add monospace font back to literals table
2015-03-12 00:37:47 -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
Adolfo Ochagavía
5a82a8116b
Remove unnecessary Arc usage in introduction
2015-03-11 13:41:31 +01:00
Manish Goregaokar
3e5f3b2350
Rollup merge of #23195 - steveklabnik:gh19808, r=alexcrichton
...
Fixes #19808
2015-03-10 14:59:46 +05:30