Steve Klabnik
078bd498b9
Evaluate # fn in docs
...
I searched for times when we were hiding functions with # in the documentation,
and fixed them to not use it unless neccesary.
I also made random improvements whenever I changed something. For example,
I changed Example to Examples, for consistency.
Fixes #13423
2015-01-17 10:49:49 -05:00
Steve Klabnik
a03701defa
Remove segmented stack info from the FFI chapter of the book.
...
Fixes #20071 .
2015-01-17 10:49:49 -05:00
bors
f3d71be65c
Merge pull request #21214 from sleepynate/spacing-in-book
...
Fix commented graphs in src/doc/trpl/ownership.md
Reviewed-by: huonw
2015-01-16 06:31:03 +00:00
nathan dotz
3626a308f3
Fix commented graphs in src/doc/trpl/ownership.md
2015-01-15 18:15:18 -05:00
Alex Crichton
5f32992b31
rollup merge of #21206 : steveklabnik/expressions
...
Suggested here: http://stackoverflow.com/a/27962076/24817
2015-01-15 14:12:08 -08:00
Alex Crichton
8c81800170
rollup merge of #21148 : bombless/patch-1
2015-01-15 14:11:55 -08:00
Alex Crichton
b86a84867a
rollup merge of #21141 : tcard/master
...
Really small correction.
This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information.
This makes it fail for the expected reason.
2015-01-15 14:11:54 -08:00
Alex Crichton
65b286d834
rollup merge of #21109 : steveklabnik/gh17224
...
Fixes #17224
2015-01-15 14:11:48 -08:00
Alex Crichton
d7009e6f31
rollup merge of #21105 : csouth3/kill-box-import
...
Closes #21093 .
r? @steveklabnik
cc @alexcrichton
I tested with `make check-docs` and this passes that. Hope that was enough.
2015-01-15 14:11:46 -08:00
Alex Crichton
7aa7707af9
rollup merge of #21040 : steveklabnik/gh20037
...
Fixes #20037 .
2015-01-15 14:11:37 -08:00
Alex Crichton
9d6e1f921b
rollup merge of #21038 : steveklabnik/gh20471
...
Fixes #20471 .
2015-01-15 14:11:36 -08:00
Alex Crichton
21effeb611
rollup merge of #21031 : steveklabnik/gh19067
...
Fixes #19067
2015-01-15 14:11:35 -08:00
Alex Crichton
8d0b937964
rollup merge of #21029 : steveklabnik/gh19924
...
Fixes #19924
2015-01-15 14:11:35 -08:00
Alex Crichton
cfbf313282
rollup merge of #21023 : steveklabnik/gh20840
...
Fixes #20840
2015-01-15 14:11:34 -08:00
Alex Crichton
e06863ef64
rollup merge of #21015 : steveklabnik/gh20852
...
Fixes #20852
2015-01-15 14:11:33 -08:00
Alex Crichton
c6a9877039
rollup merge of #21013 : steveklabnik/gh20914
...
Fixes #20914
2015-01-15 14:11:33 -08:00
Alex Crichton
73660a11c9
rollup merge of #21011 : steveklabnik/gh20993
...
Fixes #20993
2015-01-15 14:11:32 -08:00
Alex Crichton
dbbe506c10
rollup merge of #21001 : camjackson/master
...
With the code samples as they are, the compiler says:
`feature has been added to Rust, directive not necessary`
2015-01-15 14:11:31 -08:00
Alex Crichton
c478c6ac91
rollup merge of #20988 : ciphergoth/task-to-thread
...
"Tasks" are no longer a thing in Rust; refer to threads instead. Work is still needed on [threads.md](threads.md).
2015-01-15 14:11:30 -08:00
Alex Crichton
37d20f256a
rollup merge of #20986 : alkor/doc-fixes
...
Corrections in TRPL macros guide
2015-01-15 14:11:29 -08:00
Alex Crichton
eb94c357d0
rollup merge of #20929 : laurilehmijoki/master
...
The sentence is easier to read once we move the word "again" away from the last position.
2015-01-15 14:11:28 -08:00
Alex Crichton
d3c5cf1b35
rollup merge of #20892 : CarVac/master
...
`uint` was recently deprecated, so in following the use of `i32` in the first parts, replace all copies of `uint` with `u32`.
2015-01-15 14:11:28 -08:00
Steve Klabnik
fd603cd263
Clarify function return style.
...
Suggested here: http://stackoverflow.com/a/27962076/24817
2015-01-15 14:47:21 -05:00
York Xiang
bf899e997e
fix wrong link
2015-01-15 01:11:28 +08:00
Toni Cárdenas
428da78de1
TRPL: Anti-example failing for the wrong reason.
...
Really small correction.
This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information.
This makes it fail for the expected reason.
2015-01-14 15:24:41 +01:00
Steve Klabnik
ad0ce88c6c
Provide example of generic inverse()
...
Fixes #17224
2015-01-13 15:42:38 -05:00
Chase Southwood
07f723f19b
Remove unneeded box import in examples
2015-01-13 12:56:10 -06:00
Greg Chapple
4b14f67df3
Replace usage of deriving with derive in docs
2015-01-13 13:57:09 +00:00
Steve Klabnik
16a8c4d238
Don't use 'synonym' with regards to newtypes
...
Fixes #20037 .
2015-01-12 15:30:11 -05:00
Steve Klabnik
2297b0cb00
Elaborate on destructuring let
...
Fixes #20471 .
2015-01-12 15:28:09 -05:00
Steve Klabnik
b704983ee9
Improve the ownership guide a tad
...
Fixes #19924
2015-01-12 15:12:51 -05:00
Steve Klabnik
db7de969cf
Improve clarity of paragraph in the pointer guide
...
Fixes #19067
2015-01-12 13:57:09 -05:00
Lauri Lehmijoki
eabf208285
Ease parsing of an English sentence
2015-01-12 19:42:52 +02:00
Steve Klabnik
95f9e309f7
Clean up wording around uninitialized values.
...
Fixes #20840
2015-01-12 11:49:54 -05:00
Steve Klabnik
be407180d7
Link to sections in the book's README.md
...
Fixes #20852
2015-01-12 10:59:21 -05:00
Steve Klabnik
c403794310
Small fix in the book
...
Fixes #20914
2015-01-12 10:47:56 -05:00
Steve Klabnik
ba9e223c57
Small grammar fix in the book
...
Fixes #20993
2015-01-12 10:45:32 -05:00
Alexander Korolkov
a3d87fa448
Fix text in TRPL macros guide to match the example
...
Also, update description of macro invocation syntax:
after https://github.com/rust-lang/rust/pull/20563 there is
a number of additional limitations on macro syntax.
2015-01-12 17:39:18 +03:00
Cam Jackson
e1ff480e43
Remove usage and reference of feature(globs) from the book
2015-01-12 23:06:03 +11:00
Paul Crowley
8eba032f52
Purge references to Rust tasks from TRPL.
2015-01-12 09:15:33 +00:00
CarVac
9302dc5d9e
Replace uint with u32 in trpl/guessing-game.md
...
uint was recently deprecated, so in following the use of i32 at first,
replace all references to uint with u32.
Also change literals from e.g. 100u to 100, so that they are no longer
usize.
2015-01-11 21:00:42 -05:00
bors
8d88ac12c1
Merge pull request #20966 from Valloric/ownership-fix
...
Fixing integer usage in ownership doc
Reviewed-by: steveklabnik
2015-01-12 00:21:31 +00:00
bors
8c824c5b65
Merge pull request #20956 from angst7/docfixes1
...
replace deprecated uint references with u32 in trpl/looping.md
Reviewed-by: Gankro
2015-01-12 00:21:31 +00:00
bors
352c81bb4b
Merge pull request #20933 from gifnksm/patch-1
...
TRPL: `cargo build` doesn't run executables
Reviewed-by: alexcrichton
2015-01-12 00:21:30 +00:00
bors
f72c719b71
Merge pull request #20930 from charmeleon/master
...
Switching out range(0,10) example to 0..10. Tests fine
Reviewed-by: brson
2015-01-12 00:21:29 +00:00
bors
268e2bff97
Merge pull request #20926 from xnil/patch-1
...
Hepburn romanization of さようなら
Reviewed-by: huonw
2015-01-12 00:21:29 +00:00
bors
10305fcfdc
Merge pull request #20898 from sebras/trpl
...
Cosmetic updates to TRPL text
Reviewed-by: steveklabnik
2015-01-12 00:21:25 +00:00
bors
3e215200f6
Merge pull request #20877 from killercup/patch-4
...
Error Guide: Add Line Break to Robert Burns Quote
Reviewed-by: steveklabnik
2015-01-12 00:21:23 +00:00
bors
8e0bb03841
Merge pull request #20820 from sellibitze/closure-doc
...
Closure documentation: Fix boxed closure left-over
Reviewed-by: steveklabnik
2015-01-12 00:21:23 +00:00
Strahinja Val Markovic
d355da6e6f
Fixing integer usage in ownership doc
...
`int` doesn't exist anymore. Usage of its equivalent `isize` is
discouraged since its size is platform-dependent. `i32` is used instead
in the examples. Also, integer suffixes aren't needed in the examples
anymore so we can just write `5` instead of `5i`.
2015-01-11 12:42:03 -08:00