summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorDenton24646 <Denton24646@gmail.com>2022-07-23 17:57:03 -0400
committerDenton24646 <Denton24646@gmail.com>2022-07-23 17:59:53 -0400
commit72e21a2a6c2654cb1d2e292291e2e40914957776 (patch)
treec84cc39c296bb26bb021b981468b5a60ae91dff5 /info.toml
parent3a327096c6d6f8badc066a31f75e7f10468cf9fd (diff)
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 1403111..230fc72 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]]