From a2a9041549056393ec8c8a1a1bd06a8ee6ce5d4c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 27 May 2018 14:34:45 -0700 Subject: [PATCH] Fix warning about unresolved [u8] and [T] links --- serde/src/de/mod.rs | 8 ++++---- serde/src/ser/mod.rs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index d09c7350..10427156 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -57,7 +57,7 @@ //! - f32, f64 //! - char //! - **Compound types**: -//! - [T; 0] through [T; 32] +//! - \[T; 0\] through \[T; 32\] //! - tuples up to size 16 //! - **Common standard library types**: //! - String @@ -66,7 +66,7 @@ //! - PhantomData\ //! - **Wrapper types**: //! - Box\ -//! - Box\<[T]\> +//! - Box\<\[T\]\> //! - Box\ //! - Rc\ //! - Arc\ @@ -86,7 +86,7 @@ //! - Vec\ //! - **Zero-copy types**: //! - &str -//! - &[u8] +//! - &\[u8\] //! - **FFI types**: //! - CString //! - Box\ @@ -808,7 +808,7 @@ where /// - UTF-8 bytes with a length and no null terminator. /// - When serializing, all strings are handled equally. When deserializing, /// there are three flavors of strings: transient, owned, and borrowed. -/// - **byte array** - [u8] +/// - **byte array** - \[u8\] /// - Similar to strings, during deserialization byte arrays can be transient, /// owned, or borrowed. /// - **option** diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index 1dbb11a5..c5c9c423 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -55,8 +55,8 @@ //! - str //! - &T and &mut T //! - **Compound types**: -//! - [T] -//! - [T; 0] through [T; 32] +//! - \[T\] +//! - \[T; 0\] through \[T; 32\] //! - tuples up to size 16 //! - **Common standard library types**: //! - String @@ -271,7 +271,7 @@ pub trait Serialize { /// - UTF-8 bytes with a length and no null terminator. /// - When serializing, all strings are handled equally. When deserializing, /// there are three flavors of strings: transient, owned, and borrowed. -/// - **byte array** - [u8] +/// - **byte array** - \[u8\] /// - Similar to strings, during deserialization byte arrays can be transient, /// owned, or borrowed. /// - **option**