Skip to content

Commit 274ef37

Browse files
committed
Fix broken doc comment
1 parent 606d564 commit 274ef37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ impl<T> [MaybeUninit<T>] {
11941194
/// Fills a slice with elements returned by calling a closure for each index.
11951195
///
11961196
/// 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
1197+
/// [`MaybeUninit::write_filled`][slice::write_filled]. If you want to use the `Default` trait to generate values, you can
11981198
/// pass [`|_| Default::default()`][Default::default] as the argument.
11991199
///
12001200
/// # Panics

0 commit comments

Comments
 (0)