mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
remove bottom comment instead of top
This commit is contained in:
parent
dab90f7b91
commit
60393999b8
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue