From 547219c7e4f375f1ae8dcbfadce2fec4ae639730 Mon Sep 17 00:00:00 2001 From: Tyler Ruckinger Date: Thu, 23 Apr 2020 10:40:28 -0400 Subject: [PATCH 1/2] Fix doc link errors --- src/liballoc/collections/vec_deque.rs | 2 +- src/liballoc/rc.rs | 2 +- src/liballoc/sync.rs | 2 +- src/libcore/ffi.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index a3b61f1f4a589..2f50234b6d582 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -73,7 +73,7 @@ pub struct VecDeque { /// 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. diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index e106b4354e4e9..fb9f5faa018a4 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -1024,7 +1024,7 @@ unsafe fn set_data_ptr(mut ptr: *mut T, data: *mut U) -> *mut T { } impl 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]> { diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 54df2b6085780..cde412bee78d9 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -902,7 +902,7 @@ unsafe fn set_data_ptr(mut ptr: *mut T, data: *mut U) -> *mut T { } impl 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]> { diff --git a/src/libcore/ffi.rs b/src/libcore/ffi.rs index 6277da4f123f2..4ea38bbb03149 100644 --- a/src/libcore/ffi.rs +++ b/src/libcore/ffi.rs @@ -282,7 +282,7 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, '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 \ From 0ad9a4d26e1757d55a4c3dc81f3cad01ce7db12a Mon Sep 17 00:00:00 2001 From: Tyler Ruckinger Date: Thu, 23 Apr 2020 11:06:46 -0400 Subject: [PATCH 2/2] Make VaList::arg link actually work --- src/libcore/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/ffi.rs b/src/libcore/ffi.rs index 4ea38bbb03149..7bc2866dc2e67 100644 --- a/src/libcore/ffi.rs +++ b/src/libcore/ffi.rs @@ -282,7 +282,7 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, 'f> { mod sealed_trait { /// Trait which whitelists the allowed types to be used with [VaList::arg] /// - /// [VaList::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 \