Skip to content

Commit c03f61b

Browse files
authored
Rollup merge of #121352 - malobre:patch-1, r=Nilstrieb
docs: add missing "the" to `str::strip_prefix` doc Fix #121348
2 parents 433180e + 9ac73cb commit c03f61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/core/src/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2192,8 +2192,8 @@ impl str {
21922192

21932193
/// Returns a string slice with the prefix removed.
21942194
///
2195-
/// If the string starts with the pattern `prefix`, returns substring after the prefix, wrapped
2196-
/// in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
2195+
/// If the string starts with the pattern `prefix`, returns the substring after the prefix,
2196+
/// wrapped in `Some`. Unlike `trim_start_matches`, this method removes the prefix exactly once.
21972197
///
21982198
/// If the string does not start with `prefix`, returns `None`.
21992199
///

0 commit comments

Comments
 (0)