We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0e88e9 + db23329 commit 5286141Copy full SHA for 5286141
solutions/ownership/borrowing.md
@@ -147,8 +147,8 @@ fn main() {
147
let r1 = &mut s;
148
let r2 = &mut s;
149
150
- // add one line below to make a compiler error: cannot borrow `s` as mutable more than once at a time
+ // Add one line below to make a compiler error: cannot borrow `s` as mutable more than once at a time
151
// you can't use r1 and r2 at the same time
152
- println!("{}, {}", r1, r2);
+ println!("{}", r1);
153
}
154
```
0 commit comments