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.
1 parent 6d4a980 commit c4627e7Copy full SHA for c4627e7
exercises/smart_pointers/cow1.rs
@@ -52,7 +52,8 @@ mod tests {
52
fn owned_no_mutation() -> Result<(), &'static str> {
53
// We can also pass `slice` without `&` so Cow owns it directly.
54
// In this case no mutation occurs and thus also no clone,
55
- // but the result is still owned because it always was.
+ // but the result is still owned because it was never borrowed
56
+ // or mutated.
57
let slice = vec![0, 1, 2];
58
let mut input = Cow::from(slice);
59
match abs_all(&mut input) {
0 commit comments