Skip to content

Commit

Permalink
docs: add missing "the" to str::strip_prefix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
malobre committed Feb 20, 2024
1 parent 2b43e75 commit 9ac73cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down

0 comments on commit 9ac73cb

Please sign in to comment.