Guillaume Gomez
9931583468
Make primitive types docs relevant
2018-02-11 21:53:30 -05:00
Andrew Cann
b9df045b79
Rename never_type_impls gate to never_type
2017-12-12 14:03:03 +08:00
Andrew Cann
172f16bc9d
Update never_type docs based on feedback
2017-12-10 15:13:55 +08:00
Andrew Cann
a2e79a7e52
Add more links to !
doc text
2017-11-28 23:20:43 +08:00
Andrew Cann
bd7d541dbd
Fix doc tests
2017-11-24 16:51:00 +08:00
Andrew Cann
31845201e8
change stability of prim_never
2017-11-24 13:16:39 +08:00
Andrew Cann
6612590bd1
Add docs for never primitive
2017-11-24 11:23:11 +08:00
Konrad Borowski
8528508aa0
Update array documentation for Clone trait changes
2017-10-17 08:29:29 +02:00
Havvy
548686ff12
Document stable size_of primitives and pointer size guarantees
2017-09-20 21:11:03 -07:00
Nathaniel Ringo
c987f30049
Mention null_mut on the pointer primitive docs.
...
Also adds a few mentions that both `*const` and `*mut` support
functions, when only `*const` was mentioned before.
2017-08-22 12:00:05 -05:00
Corey Farwell
1065ad418e
Minor rewrite of char primitive unicode intro.
...
Opened primarily to address #36998 .
2017-08-17 00:36:30 -04:00
Bastien Orivel
3ab86fbab2
Fix some typos
2017-08-12 14:01:11 +02:00
QuietMisdreavus
71751db491
add documentation for function pointers as a primitive
2017-08-01 09:42:12 -05:00
QuietMisdreavus
a2d5514693
add docs for references as a primitive
2017-07-30 14:59:08 -05:00
kennytm
4711982314
Removed as many "```ignore" as possible.
...
Replaced by adding extra imports, adding hidden code (`# ...`), modifying
examples to be runnable (sorry Homura), specifying non-Rust code, and
converting to should_panic, no_run, or compile_fail.
Remaining "```ignore"s received an explanation why they are being ignored.
2017-06-23 15:31:53 +08:00
Tim Neumann
d4d35cfecc
Rollup merge of #41243 - projektir:prim_str_docs, r=GuillaumeGomez
...
Minor nits in primitive str
Some minor updates to linking, added some links, doc format, etc.
r? @GuillaumeGomez
2017-04-12 14:45:48 +02:00
projektir
ed7b6c3724
Minor nits in primitive str
2017-04-12 00:10:36 -04:00
Nathaniel Ringo
b9d662a000
Fixes incorrect formatting in array's documentation.
2017-04-10 16:12:39 -05:00
Corey Farwell
efc2ae8e59
Rollup merge of #40703 - GuillaumeGomez:pointer-docs, r=steveklabnik
...
Add missing urls in ptr docs
r? @rust-lang/docs
2017-03-31 16:48:24 -04:00
Guillaume Gomez
27151017e9
Add missing urls in ptr docs
2017-03-21 16:23:27 +01:00
steveklabnik
d1d9626e75
Fix up various links
...
The unstable book, libstd, libcore, and liballoc all needed some
adjustment.
2017-03-20 10:10:16 -04:00
Corey Farwell
e7b0f2badf
Remove function invokation parens from documentation links.
...
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2017-03-13 21:43:18 -04:00
Steve Klabnik
b4cd3d9206
Revert "Fix up links"
...
This reverts commit 7f1d1c6d9a7be5e427bace30e740b16b25f25c92.
The original commit was created because mdBook and rustdoc had
different generation algorithms for header links; now with
https://github.com/rust-lang/rust/pull/39966 , the algorithms
are the same. So let's undo this change.
... when I came across this problem, I said "eh, this isn't fun,
but it doesn't take that long." I probably should have just actually
taken the time to fix upstream, given that they were amenable. Oh
well!
2017-02-20 09:09:12 -05:00
Steve Klabnik
7f1d1c6d9a
Fix up links
...
mdbook and rustdoc generate links differently, so we need to change all
these links.
2017-02-13 13:41:24 -05:00
Guillaume Gomez
c8d1f322ca
Add missing urls for array docs
2017-01-24 21:16:41 +01:00
Guillaume Gomez
b09305edb9
Specify the result of integer cast on boolean
2017-01-21 12:35:43 +01:00
Oliver Middleton
f48f3d7584
rustdoc: Give primitive types stability attributes
...
This is especially important for i128/u128 to make it clear they are
unstable in the docs.
2017-01-15 09:08:29 +00:00
Oliver Middleton
8d076ce0a6
Fix typo in tuple docs
2017-01-05 01:16:37 +00:00
est31
85ec09187c
Make rustdoc aware of the primitive i128 type
...
Many thanks to ollie27 for spotting all the places.
2016-12-30 15:17:27 +01:00
Tobias Bucher
717d2ddca7
Use less size_t
casts in libstd since it's now defined as usize
2016-10-08 15:48:28 +02:00
Keegan McAllister
54c680cdb1
Tweak array docs
...
Fixes #29331 .
2016-09-11 12:36:24 -07:00
Nick Cameron
e6cc4c5d13
Fix links
2016-08-18 15:43:35 +12:00
Jonathan Turner
559bfd68e3
Rollup merge of #35613 - matthew-piziak:array-docs-trait-justification, r=steveklabnik
...
provide additional justification for array interface design
Explain why Rust does not implement traits for large arrays.
Explain why most methods are implemented on slices rather than arrays.
Note: I'm dipping my toes in the water with a tiny PR. Especially looking for feedback on wording and style. Points of concern: appropriate level of top-level explanation; foreshadowing (is it appropriate to imply that we expect Rust's type system to eventually support size-generic arrays?); using `Foo` and `Bar` as type variables instead of e.g. `T` and `S`.
@peschkaj
2016-08-17 06:25:24 -07:00
Matthew Piziak
e173ead684
provide additional justification for array interface design
...
Explain why Rust does not implement traits for large arrays.
Explain why most methods are implemented on slices rather than arrays.
2016-08-12 12:12:54 -04:00
JessRudder
758aff7883
Update note to include recommendation to use .as_slice()
2016-08-12 10:39:40 -04:00
JessRudder
91a2c25e2e
Add note to docs for &str that example is to demo internals only
2016-08-11 18:47:47 -04:00
Guillaume Gomez
a6bbd0c1ca
Improve primitive integers documentation
2016-07-08 23:03:17 +02:00
Oliver Middleton
f1531254af
Use the correct types in float examples
2016-06-22 23:33:07 +01:00
Matt Kraai
68ac3e9ff0
Fix broken link name in bool
documentation
2016-06-01 05:32:11 -07:00
Tobias Bucher
3e9b859af2
Add Copy
to the traits that are automatically implemented for tuples
2016-04-06 20:10:33 +02:00
Tshepang Lekhonkhobe
7d626e9f55
doc: small char improvements
2016-03-22 08:29:55 +02:00
Alex Crichton
73db76015e
doc: Fix a bunch of broken links
...
A few categories:
* Links into compiler docs were just all removed as we're not generating
compiler docs.
* Move up one more level to forcibly go to std docs to fix inlined documentation
across the facade crates.
2016-03-08 13:44:14 -08:00
Craig M. Brandenburg
b517256941
Spelling fix for "because"
2016-03-06 08:37:30 -07:00
Guillaume Gomez
25c62ebfdd
Add f32 and f64 examples warning
2016-02-25 10:15:13 +01:00
Ravi Shankar
eb97c26d3b
Updated the primitive docs for bool
2016-02-24 01:15:28 +05:30
Jack O'Connor
071b4b6f7b
correct the primitive char doc's use of bytes and code points
...
Previously the docs suggested that '❤️ ' doesn't fit in a char because
it's 6 bytes. But that's misleading. 'a̚' also doesn't fit in a char,
even though it's only 3 bytes. The important thing is the number of code
points, not the number of bytes. Clarify the primitive char docs around
this.
2016-02-15 21:28:54 -05:00
Steve Klabnik
8fa48573e1
make note of arity and 32-length restriction
2016-02-09 16:00:54 -05:00
Steve Klabnik
4ebc47bad2
Properly document tuples
...
Fixes #29339
2016-02-09 16:00:50 -05:00
Steve Klabnik
4e2ec9a178
small fix to str doc example
2015-12-16 22:12:47 -05:00
Steve Klabnik
77882c9cba
Fix extra space in str docs
2015-12-09 15:52:04 -05:00