diff options
| author | waffle <waffle.lapkin@gmail.com> | 2025-05-21 23:43:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 23:43:57 +0200 |
| commit | cff790c98e9601281accf86f9c80cf894727564b (patch) | |
| tree | 88373444d2ad68282e00705e167009544b54f296 /library/alloc | |
| parent | 462cc099c93b2915eef61c3fbc504588b41b27d1 (diff) | |
| download | rust-cff790c98e9601281accf86f9c80cf894727564b.tar.gz rust-cff790c98e9601281accf86f9c80cf894727564b.zip | |
add doc alias `replace_first` for `str::replacen`
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index 8766fd904b0..f1b1734b8b2 100644 --- a/library/alloc/src/str.rs +++ b/library/alloc/src/str.rs @@ -320,6 +320,7 @@ impl str { /// ``` #[cfg(not(no_global_oom_handling))] #[rustc_allow_incoherent_impl] + #[doc(alias = "replace_first")] #[must_use = "this returns the replaced string as a new allocation, \ without modifying the original"] #[stable(feature = "str_replacen", since = "1.16.0")] |
