diff options
| author | Denton24646 <Denton24646@gmail.com> | 2022-07-23 17:57:03 -0400 |
|---|---|---|
| committer | Denton24646 <Denton24646@gmail.com> | 2022-07-23 17:59:53 -0400 |
| commit | 72e21a2a6c2654cb1d2e292291e2e40914957776 (patch) | |
| tree | c84cc39c296bb26bb021b981468b5a60ae91dff5 /info.toml | |
| parent | 3a327096c6d6f8badc066a31f75e7f10468cf9fd (diff) | |
feat: add cow1.rs exercise
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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]] |
