Skip to content

Commit d9fdc15

Browse files
committed
---
yaml --- r: 274207 b: refs/heads/stable c: a559577 h: refs/heads/master i: 274205: 9549b32 274203: c151bb5 274199: aca27f5 274191: ad29488 274175: 23ea8c6
1 parent e2ae9e4 commit d9fdc15

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9624b68207c8c8d216e6e981088cb54d46aa1152
32+
refs/heads/stable: a559577c2f2030df89f9f8b245d49e86a4f90d93
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/book/traits.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ it won’t affect you, unless you `use` that trait.
280280
There’s one more restriction on implementing traits: either the trait
281281
or the type you’re implementing it for must be defined by you. Or more
282282
precisely, one of them must be defined in the same crate as the `impl`
283-
you're writing.
283+
you're writing. For more on Rust's module and package system, see the
284+
chapter on [crates and modules][cm].
284285

285286
So, we could implement the `HasArea` type for `i32`, because we defined
286287
`HasArea` in our code. But if we tried to implement `ToString`, a trait
@@ -291,6 +292,7 @@ One last thing about traits: generic functions with a trait bound use
291292
‘monomorphization’ (mono: one, morph: form), so they are statically dispatched.
292293
What’s that mean? Check out the chapter on [trait objects][to] for more details.
293294

295+
[cm]: crates-and-modules.html
294296
[to]: trait-objects.html
295297

296298
# Multiple trait bounds

0 commit comments

Comments
 (0)