mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
docs: add missing "the" to str::strip_prefix
doc
This commit is contained in:
parent
2b43e75c98
commit
9ac73cbdc6
@ -2192,8 +2192,8 @@ impl str {
|
||||
|
||||
/// Returns a string slice with the prefix removed.
|
||||
///
|
||||
/// If the string starts with the pattern `prefix`, returns substring after the prefix, wrapped
|
||||
/// in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
|
||||
/// If the string starts with the pattern `prefix`, returns the substring after the prefix,
|
||||
/// wrapped in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
|
||||
///
|
||||
/// If the string does not start with `prefix`, returns `None`.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user