8000 Update 2022-10-28-gats-stabilization.md · DutchGhost/blog.rust-lang.org@0c2f821 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c2f821

Browse files
authored
Update 2022-10-28-gats-stabilization.md
Fixes the 'muteness' of the `slice` field in the `WindowsMut` example code. The example used `&'a [T]` as a type of a field where `&'a mut [T]` was expected
1 parent c7ac392 commit 0c2f821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2022-10-28-gats-stabilization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trait LendingIterator {
4444
}
4545

4646
pub struct WindowsMut<'x, T> {
47-
slice: &'x [T],
47+
slice: &'x mut [T],
4848
}
4949

5050
impl<'x, T> LendingIterator for WindowsMut<'x, T> {

0 commit comments

Comments
 (0)
0