@@ -132,7 +132,6 @@ pub use intrinsics::transmute;
132
132
/// [uninit]: fn.uninitialized.html
133
133
/// [clone]: ../clone/trait.Clone.html
134
134
/// [swap]: fn.swap.html
135
- /// [FFI]: ../../book/first-edition/ffi.html
136
135
/// [box]: ../../std/boxed/struct.Box.html
137
136
/// [leak]: ../../std/boxed/struct.Box.html#method.leak
138
137
/// [into_raw]: ../../std/boxed/struct.Box.html#method.into_raw
@@ -479,7 +478,7 @@ pub const fn needs_drop<T>() -> bool {
479
478
///
480
479
/// This has the same effect as allocating space with
481
480
/// [`mem::uninitialized`][uninit] and then zeroing it out. It is useful for
482
- /// [ FFI] sometimes, but should generally be avoided.
481
+ /// FFI sometimes, but should generally be avoided.
483
482
///
484
483
/// There is no guarantee that an all-zero byte-pattern represents a valid value of
485
484
/// some type `T`. If `T` has a destructor and the value is destroyed (due to
@@ -490,7 +489,6 @@ pub const fn needs_drop<T>() -> bool {
490
489
/// many of the same caveats.
491
490
///
492
491
/// [uninit]: fn.uninitialized.html
493
- /// [FFI]: ../../book/first-edition/ffi.html
494
492
/// [ub]: ../../reference/behavior-considered-undefined.html
495
493
///
496
494
/// # Examples
@@ -514,11 +512,9 @@ pub unsafe fn zeroed<T>() -> T {
514
512
/// **This is incredibly dangerous and should not be done lightly. Deeply
515
513
/// consider initializing your memory with a default value instead.**
516
514
///
517
- /// This is useful for [ FFI] functions and initializing arrays sometimes,
515
+ /// This is useful for FFI functions and initializing arrays sometimes,
518
516
/// but should generally be avoided.
519
517
///
520
- /// [FFI]: ../../book/first-edition/ffi.html
521
- ///
522
518
/// # Undefined behavior
523
519
///
524
520
/// It is [undefined behavior][ub] to read uninitialized memory, even just an
@@ -689,10 +685,9 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {
689
685
/// While this does call the argument's implementation of [`Drop`][drop],
690
686
/// it will not release any borrows, as borrows are based on lexical scope.
691
687
///
692
- /// This effectively does nothing for
693
- /// [types which implement `Copy`](../../book/first-edition/ownership.html#copy-types),
694
- /// e.g. integers. Such values are copied and _then_ moved into the function,
695
- /// so the value persists after this function call.
688
+ /// This effectively does nothing for types which implement `Copy`, e.g.
689
+ /// integers. Such values are copied and _then_ moved into the function, so the
690
+ /// value persists after this function call.
696
691
///
697
692
/// This function is not magic; it is literally defined as
698
693
///
0 commit comments