Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nostarch/chapter20.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ value of the `Rhs` type parameter instead of using the default of `Self`.

You’ll use default type parameters in two main ways:

1. To extend a type without breaking existing code
1. To extend a trait without breaking existing code
1. To allow customization in specific cases most users won’t need

The standard library’s `Add` trait is an example of the second purpose:
Expand Down
2 changes: 1 addition & 1 deletion src/ch20-02-advanced-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ value of the `Rhs` type parameter instead of using the default of `Self`.

You’ll use default type parameters in two main ways:

1. To extend a type without breaking existing code
1. To extend a trait without breaking existing code
2. To allow customization in specific cases most users won’t need

The standard library’s `Add` trait is an example of the second purpose:
Expand Down