Skip to content

Commit

Permalink
type not struct
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile authored Aug 29, 2024
1 parent e73ce17 commit 21aea45
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 @@ -15,7 +15,7 @@ pub enum CowArc<'a, T: ?Sized + 'static> {
}
```

As implied by the `Cow` name, this struct 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 an owned form via cloning when mutation or ownership 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 21aea45

Please sign in to comment.