]> git.lizzy.rs Git - rust.git/commitdiff
Fix doc link errors
authorTyler Ruckinger <t.ruckinger@gmail.com>
Thu, 23 Apr 2020 14:40:28 +0000 (10:40 -0400)
committerTyler Ruckinger <t.ruckinger@gmail.com>
Thu, 23 Apr 2020 14:40:28 +0000 (10:40 -0400)
src/liballoc/collections/vec_deque.rs
src/liballoc/rc.rs
src/liballoc/sync.rs
src/libcore/ffi.rs

index a3b61f1f4a5892fa436fcde9d34d96a4b611a579..2f50234b6d58243ad75d6f089ae003bf09fdbfe3 100644 (file)
@@ -73,7 +73,7 @@ pub struct VecDeque<T> {
 /// It produces the following sequence of matching slices:
 ///
 /// ([0 1], [a b])
-/// ([2], [c])
+/// (\[2\], \[c\])
 /// ([3 4], [d e])
 ///
 /// and the uneven remainder of either A or B is skipped.
index e106b4354e4e942e731192ec822834a12bb299f7..fb9f5faa018a4c7c91deca64610fe67f45c3626f 100644 (file)
@@ -1024,7 +1024,7 @@ unsafe fn set_data_ptr<T: ?Sized, U>(mut ptr: *mut T, data: *mut U) -> *mut T {
 }
 
 impl<T> Rc<[T]> {
-    /// Copy elements from slice into newly allocated Rc<[T]>
+    /// Copy elements from slice into newly allocated Rc<\[T\]>
     ///
     /// Unsafe because the caller must either take ownership or bind `T: Copy`
     unsafe fn copy_from_slice(v: &[T]) -> Rc<[T]> {
index 54df2b60857803541ab7dbb15e13904bcf1a1b76..cde412bee78d9ab2d7d01d94fa6b50bd472dcc8a 100644 (file)
@@ -902,7 +902,7 @@ unsafe fn set_data_ptr<T: ?Sized, U>(mut ptr: *mut T, data: *mut U) -> *mut T {
 }
 
 impl<T> Arc<[T]> {
-    /// Copy elements from slice into newly allocated Arc<[T]>
+    /// Copy elements from slice into newly allocated Arc<\[T\]>
     ///
     /// Unsafe because the caller must either take ownership or bind `T: Copy`.
     unsafe fn copy_from_slice(v: &[T]) -> Arc<[T]> {
index 6277da4f123f21cb3b558e1995740e518907e0ba..4ea38bbb03149dc869e51360384849fcd0498b5a 100644 (file)
@@ -282,7 +282,7 @@ fn deref_mut(&mut self) -> &mut VaListImpl<'f> {
 mod sealed_trait {
     /// Trait which whitelists the allowed types to be used with [VaList::arg]
     ///
-    /// [VaList::va_arg]: struct.VaList.html#method.arg
+    /// [VaList::arg]: struct.VaList.html#method.arg
     #[unstable(
         feature = "c_variadic",
         reason = "the `c_variadic` feature has not been properly tested on \