Course contentsShow
← Rust
Lesson 221 of 1,9103. Borrowing and ReferencesFree lesson

Preventing Mutable Aliasing via Scope

Use lexical scoping to shorten the duration of mutable borrows to satisfy compiler rules.

Writing your lesson…