Rollup merge of #121352 - malobre:patch-1, r=Nilstrieb

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

Fix #121348
This commit is contained in:
Matthias Krüger 2024-02-20 19:35:42 +01:00 committed by GitHub
commit c03f61ba69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`.
///