From 1d36316a104e004148a52f6e72a182484a93473c Mon Sep 17 00:00:00 2001 From: DutchGhost Date: Tue, 8 Nov 2022 16:43:12 +0100 Subject: [PATCH] Update 2022-10-28-gats-stabilization.md Fixes the 'muteness' of the slice field in the WindowsMut example --- posts/2022-10-28-gats-stabilization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2022-10-28-gats-stabilization.md b/posts/2022-10-28-gats-stabilization.md index 015a17a9b..f25f507a6 100644 --- a/posts/2022-10-28-gats-stabilization.md +++ b/posts/2022-10-28-gats-stabilization.md @@ -44,7 +44,7 @@ trait LendingIterator { } pub struct WindowsMut<'x, T> { - slice: &'x [T], + slice: &'x mut [T], } impl<'x, T> LendingIterator for WindowsMut<'x, T> {