From 547219c7e4f375f1ae8dcbfadce2fec4ae639730 Mon Sep 17 00:00:00 2001 From: Tyler Ruckinger Date: Thu, 23 Apr 2020 10:40:28 -0400 Subject: Fix doc link errors --- src/liballoc/collections/vec_deque.rs | 2 +- src/liballoc/rc.rs | 2 +- src/liballoc/sync.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index a3b61f1f4a5..2f50234b6d5 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 e106b4354e4..fb9f5faa018 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 54df2b60857..cde412bee78 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]> { -- cgit 1.4.1-3-g733a5