diff options
| author | Tonći Galić <tuxified@gmail.com> | 2020-04-08 11:00:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 11:00:11 +0200 |
| commit | 60393999b842227c24595d11a336786504d8922d (patch) | |
| tree | de3dd3a44d90294c7a56bb1fb6adfb7358116aa8 /exercises/conversions/as_ref_mut.rs | |
| parent | dab90f7b91a6000fe874e3d664f244048e5fa342 (diff) | |
remove bottom comment instead of top
Diffstat (limited to 'exercises/conversions/as_ref_mut.rs')
| -rw-r--r-- | exercises/conversions/as_ref_mut.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/conversions/as_ref_mut.rs b/exercises/conversions/as_ref_mut.rs index 2ab63ac..aa1e623 100644 --- a/exercises/conversions/as_ref_mut.rs +++ b/exercises/conversions/as_ref_mut.rs @@ -2,13 +2,13 @@ // Read more about them at https://doc.rust-lang.org/std/convert/trait.AsRef.html // and https://doc.rust-lang.org/std/convert/trait.AsMut.html, respectively. +// I AM NOT DONE // Obtain the number of bytes (not characters) in the given argument // Add the AsRef trait appropriately as a trait bound fn byte_counter<T>(arg: T) -> usize { arg.as_ref().as_bytes().len() } -// I AM NOT DONE // Obtain the number of characters (not bytes) in the given argument // Add the AsRef trait appropriately as a trait bound fn char_counter<T>(arg: T) -> usize { |
