Browse Source

added notions

content-update
Chris 3 years ago
parent
commit
c8eaec8100
  1. 7
      subjects/borrow/README.md

7
subjects/borrow/README.md

@ -2,14 +2,17 @@
### Instructions
Complete the signature and the body of the `str_len` that receives a string or a string literal and returns its length without taking ownership of the value (i.e, borrowing the value)
Complete the signature and the body of the `str_len` **function** that receives a string or a string literal and returns its length without taking ownership of the value (i.e, borrowing the value).
### Expected Function
### Expected Function (The signature needs to be completed)
```rust
pub fn str_len(s: ) -> usize {
}
```
### Notions
[Primitive Type str](https://doc.rust-lang.org/std/primitive.str.html)
### Usage

Loading…
Cancel
Save