Skip to content

Commit 31e44f4

Browse files
WaffleLapkinJoshua Nelson
authored and
Joshua Nelson
committed
Change wording a bit: module => crate
It seems more correct
1 parent 2c2f61a commit 31e44f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/method-lookup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ nominal type `Foo` (e.g., a struct), any methods defined within an
7373
impl like `impl Foo` are inherent methods. Nothing needs to be
7474
imported to use an inherent method, they are associated with the type
7575
itself (note that inherent impls can only be defined in the same
76-
module as the type itself).
76+
crate as the type itself).
7777

7878
FIXME: Inherent candidates are not always derived from impls. If you
7979
have a trait object, such as a value of type `Box<ToString>`, then the
@@ -90,7 +90,7 @@ TODO: Is this FIXME still accurate?
9090
the trait `ToString` imported, and I call `to_string()` on a value of
9191
type `T`, then we will go off to find out whether there is an impl of
9292
`ToString` for `T`. These kinds of method calls are called "extension
93-
methods". They can be defined in any module, not only the one that
93+
methods". They can be defined in any crate, not only the one that
9494
defined `T`. Furthermore, you must import the trait to call such a
9595
method.
9696

0 commit comments

Comments
 (0)