summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2022-08-16 09:35:53 +0200
committerGitHub <noreply@github.com>2022-08-16 09:35:53 +0200
commit25ab52b8e722df8b18b1e46651b56783d62f76af (patch)
tree1ad123062207dccbe08b07b03cc114598e87e39e /info.toml
parentcd0ee50dd7abb3b7514b2b3e3f8a233b857e9edb (diff)
parent72e21a2a6c2654cb1d2e292291e2e40914957776 (diff)
Merge pull request #1103 from exdx/feat/cow
feat: add cow1.rs exercise
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/info.toml b/info.toml
index dc1485d..2787535 100644
--- a/info.toml
+++ b/info.toml
@@ -932,6 +932,17 @@ is too much of a struggle, consider reading through all of Chapter 16 in the boo
https://doc.rust-lang.org/stable/book/ch16-00-concurrency.html
"""
+[[exercises]]
+name = "cow1"
+path = "exercises/standard_library_types/cow1.rs"
+mode = "compile"
+hint = """
+Since the vector is already owned, the `Cow` type doesn't need to clone it.
+
+Checkout https://doc.rust-lang.org/std/borrow/enum.Cow.html for documentation
+on the `Cow` type.
+"""
+
# THREADS
[[exercises]]