diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2015-05-27 19:20:32 -0400 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2015-05-27 19:26:18 -0400 |
| commit | a959cc435f4f5821d26ae36716d6a46e2af550af (patch) | |
| tree | bd7e8f3708af3a8d60f85217c61d208e16072ded /src/doc/trpl | |
| parent | 875d3562452930657ab59766568c02bcfab851bd (diff) | |
| download | rust-a959cc435f4f5821d26ae36716d6a46e2af550af.tar.gz rust-a959cc435f4f5821d26ae36716d6a46e2af550af.zip | |
Remove mentions of int / uint from public documentation
Diffstat (limited to 'src/doc/trpl')
| -rw-r--r-- | src/doc/trpl/associated-types.md | 2 | ||||
| -rw-r--r-- | src/doc/trpl/box-syntax-and-patterns.md | 2 | ||||
| -rw-r--r-- | src/doc/trpl/traits.md | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/associated-types.md b/src/doc/trpl/associated-types.md index 55e2787cc25..ec96880f12a 100644 --- a/src/doc/trpl/associated-types.md +++ b/src/doc/trpl/associated-types.md @@ -43,7 +43,7 @@ trait Graph { Now, our clients can be abstract over a given `Graph`: ```rust,ignore -fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> uint { ... } +fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> usize { ... } ``` No need to deal with the `E`dge type here! diff --git a/src/doc/trpl/box-syntax-and-patterns.md b/src/doc/trpl/box-syntax-and-patterns.md index 1cf84bfd658..8d83b64d683 100644 --- a/src/doc/trpl/box-syntax-and-patterns.md +++ b/src/doc/trpl/box-syntax-and-patterns.md @@ -58,7 +58,7 @@ fn main() { ``` The idea is that by passing around a box, you're only copying a pointer, rather -than the hundred `int`s that make up the `BigStruct`. +than the hundred `i32`s that make up the `BigStruct`. This is an antipattern in Rust. Instead, write this: diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index efa16f2942f..9ac170ddec2 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -146,7 +146,7 @@ print_area(5); We get a compile-time error: ```text -error: failed to find an implementation of trait main::HasArea for int +error: the trait `HasArea` is not implemented for the type `_` [E0277] ``` So far, we’ve only added trait implementations to structs, but you can |
