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.
1 parent 606d564 commit 274ef37Copy full SHA for 274ef37
library/core/src/mem/maybe_uninit.rs
@@ -1194,7 +1194,7 @@ impl<T> [MaybeUninit<T>] {
1194
/// Fills a slice with elements returned by calling a closure for each index.
1195
///
1196
/// This method uses a closure to create new values. If you'd rather `Clone` a given value, use
1197
- /// [`MaybeUninit::fill`]. If you want to use the `Default` trait to generate values, you can
+ /// [`MaybeUninit::write_filled`][slice::write_filled]. If you want to use the `Default` trait to generate values, you can
1198
/// pass [`|_| Default::default()`][Default::default] as the argument.
1199
1200
/// # Panics
0 commit comments