We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace_first
str::replacen
1 parent 02d9329 commit 66dc879Copy full SHA for 66dc879
alloc/src/str.rs
@@ -320,6 +320,7 @@ impl str {
320
/// ```
321
#[cfg(not(no_global_oom_handling))]
322
#[rustc_allow_incoherent_impl]
323
+ #[doc(alias = "replace_first")]
324
#[must_use = "this returns the replaced string as a new allocation, \
325
without modifying the original"]
326
#[stable(feature = "str_replacen", since = "1.16.0")]
0 commit comments