diff --git a/src/generics/assoc_items/types.md b/src/generics/assoc_items/types.md index a5bbbfe139..201e66e838 100644 --- a/src/generics/assoc_items/types.md +++ b/src/generics/assoc_items/types.md @@ -42,8 +42,8 @@ trait Contains { type B; fn contains(&self, _: &Self::A, _: &Self::B) -> bool; - fn first(&self) -> i32; - fn last(&self) -> i32; + fn first(&self) -> A; + fn last(&self) -> B; } impl Contains for Container {