From f460725e8882f34d135cdce35a6d18ee721c611e Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Thu, 18 Dec 2025 11:16:30 -0500 Subject: [PATCH] Update types.md Includes the associated types for the first() and last() fns in addition to the contains() fn. --- src/generics/assoc_items/types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {