@@ -132,7 +132,6 @@ pub use intrinsics::transmute;
132132/// [uninit]: fn.uninitialized.html
133133/// [clone]: ../clone/trait.Clone.html
134134/// [swap]: fn.swap.html
135- /// [FFI]: ../../book/first-edition/ffi.html
136135/// [box]: ../../std/boxed/struct.Box.html
137136/// [leak]: ../../std/boxed/struct.Box.html#method.leak
138137/// [into_raw]: ../../std/boxed/struct.Box.html#method.into_raw
@@ -475,7 +474,7 @@ pub fn needs_drop<T>() -> bool {
475474///
476475/// This has the same effect as allocating space with
477476/// [`mem::uninitialized`][uninit] and then zeroing it out. It is useful for
478- /// [ FFI] sometimes, but should generally be avoided.
477+ /// FFI sometimes, but should generally be avoided.
479478///
480479/// There is no guarantee that an all-zero byte-pattern represents a valid value of
481480/// some type `T`. If `T` has a destructor and the value is destroyed (due to
@@ -486,7 +485,6 @@ pub fn needs_drop<T>() -> bool {
486485/// many of the same caveats.
487486///
488487/// [uninit]: fn.uninitialized.html
489- /// [FFI]: ../../book/first-edition/ffi.html
490488/// [ub]: ../../reference/behavior-considered-undefined.html
491489///
492490/// # Examples
@@ -510,11 +508,9 @@ pub unsafe fn zeroed<T>() -> T {
510508/// **This is incredibly dangerous and should not be done lightly. Deeply
511509/// consider initializing your memory with a default value instead.**
512510///
513- /// This is useful for [ FFI] functions and initializing arrays sometimes,
511+ /// This is useful for FFI functions and initializing arrays sometimes,
514512/// but should generally be avoided.
515513///
516- /// [FFI]: ../../book/first-edition/ffi.html
517- ///
518514/// # Undefined behavior
519515///
520516/// It is [undefined behavior][ub] to read uninitialized memory, even just an
@@ -685,10 +681,9 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {
685681/// While this does call the argument's implementation of [`Drop`][drop],
686682/// it will not release any borrows, as borrows are based on lexical scope.
687683///
688- /// This effectively does nothing for
689- /// [types which implement `Copy`](../../book/first-edition/ownership.html#copy-types),
690- /// e.g. integers. Such values are copied and _then_ moved into the function,
691- /// so the value persists after this function call.
684+ /// This effectively does nothing for types which implement `Copy`, e.g.
685+ /// integers. Such values are copied and _then_ moved into the function, so the
686+ /// value persists after this function call.
692687///
693688/// This function is not magic; it is literally defined as
694689///
0 commit comments