Skip to content

Commit

Permalink
Rollup merge of #121352 - malobre:patch-1, r=Nilstrieb
Browse files Browse the repository at this point in the history
docs: add missing "the" to `str::strip_prefix` doc

Fix #121348
  • Loading branch information
matthiaskrgr committed Feb 20, 2024
2 parents 433180e + 9ac73cb commit c03f61b
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 c03f61b

Please sign in to comment.