Skip to content

Commit

Permalink
remove mutability claim (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: François Mockers <[email protected]>
  • Loading branch information
SpecificProtagonist and mockersf authored Oct 15, 2024
1 parent d3fc0b6 commit 21f22bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub enum CowArc<'a, T: ?Sized + 'static> {
}
```

As implied by the `Cow` name, this type allows for cheap immutable reference, but can be converted into an owned form via cloning when mutation or ownership is required.
As implied by the `Cow` name, this type allows for cheap immutable reference, but can be converted into a shared owned form via cloning when lifetime extension is required.

This data structure is particularly useful for `str` or other values with a static lifetime,
as might be used in structures such as asset paths.
Expand Down

0 comments on commit 21f22bb

Please sign in to comment.