cow1 solution

This commit is contained in:
mo8it
2024-06-29 02:07:56 +02:00
parent a943f5ba32
commit 663a03a17b
3 changed files with 106 additions and 47 deletions
+3 -3
View File
@@ -1020,11 +1020,11 @@ https://doc.rust-lang.org/stable/book/ch16-00-concurrency.html"""
name = "cow1"
dir = "19_smart_pointers"
hint = """
If `Cow` already owns the data it doesn't need to clone it when `to_mut()` is
If `Cow` already owns the data, it doesn't need to clone it when `to_mut()` is
called.
Check out https://doc.rust-lang.org/std/borrow/enum.Cow.html for documentation
on the `Cow` type."""
Check out the documentation of the `Cow` type:
https://doc.rust-lang.org/std/borrow/enum.Cow.html"""
# THREADS