File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ The associated item has a path of a path to the implementing type followed by
2424the associate item's path component. Inherent implementations cannot contain
2525associated type aliases.
2626
27- A type can also have multiple inherent implementations but the implementing type
28- must be defined within the same crate.
27+ A type can also have multiple inherent implementations. An implementing type
28+ must be defined within the same crate as the original type definition .
2929
3030``` rust
3131struct Point {x : i32 , y : i32 }
@@ -45,6 +45,7 @@ my_point.log();
4545A _ trait implementation_ is defined like an inherent implementation except that
4646the optional generic type declarations is followed by a [ trait] followed
4747by the keyword ` for ` . Followed by a path to a nominal type.
48+
4849<!-- To understand this, you have to back-reference to the previous section. :( -->
4950
5051The trait is known as the _ implemented trait_ . The implementing type
You can’t perform that action at this time.
0 commit comments