Browse Source

Add missing public identifier

content-update
Augusto 3 years ago
parent
commit
14501a23cf
  1. 4
      subjects/delete_prefix/README.md

4
subjects/delete_prefix/README.md

@ -7,7 +7,7 @@ Define the function `delete_prefix(prefix, s)` that returns the string slice `s`
### Expected Function
```rust
fn delete_prefix(prefix: &str, s: &str) -> Option<&str> {
pub fn delete_prefix(prefix: &str, s: &str) -> Option<&str> {
}
```
@ -16,6 +16,8 @@ fn delete_prefix(prefix: &str, s: &str) -> Option<&str> {
Here is a program to test your function.
```rust
use delete_prefix::delete_prefix;
fn main() {
println!("{:?}", delete_prefix("ab", "abcdefghijklmnop"));
println!("{:?}", delete_prefix("x", "abcdefghijklmnop"));

Loading…
Cancel
Save