Skip to content

Commit

Permalink
Unrolled build for rust-lang#121352
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#121352 - malobre:patch-1, r=Nilstrieb

docs: add missing "the" to `str::strip_prefix` doc

Fix rust-lang#121348
  • Loading branch information
rust-timer committed Feb 21, 2024
2 parents bb59453 + 9ac73cb commit d3097ba
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 d3097ba

Please sign in to comment.