Browse Source

Merge pull request #733 from anr-m/patch-15

fix example code in rust/string_literals
content-update
LEEDASILVA 3 years ago committed by GitHub
parent
commit
caaa896de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      subjects/string_literals/README.md

10
subjects/string_literals/README.md

@ -21,19 +21,19 @@ Create the following functions:
### Expected Functions
```rust
fn is_empty(v: &str) -> bool {
pub fn is_empty(v: &str) -> bool {
}
fn is_ascii(v: &str) -> bool {
pub fn is_ascii(v: &str) -> bool {
}
fn contains(v: &str, pat: &str) -> bool {
pub fn contains(v: &str, pat: &str) -> bool {
}
fn split_at(v: &str, index: usize) -> (&str, &str) {
pub fn split_at(v: &str, index: usize) -> (&str, &str) {
}
fn find(v: &str, pat: char) -> usize {
pub fn find(v: &str, pat: char) -> usize {
}
```

Loading…
Cancel
Save