Fix rustdoc examples

This commit is contained in:
flip1995 2019-12-03 16:29:05 +01:00
parent 1e3b24de43
commit aa2381d9d0
No known key found for this signature in database
GPG key ID: 693086869D506637

View file

@ -168,6 +168,7 @@ enum Slice<'a> {
/// ## Example /// ## Example
/// ///
/// ```rust /// ```rust
/// # let mut a = vec![0, 1];
/// let t = a[1]; /// let t = a[1];
/// a[1] = a[0]; /// a[1] = a[0];
/// a[0] = t; /// a[0] = t;
@ -180,6 +181,7 @@ enum Slice<'a> {
/// ## Example /// ## Example
/// ///
/// ```rust /// ```rust
/// # let mut a = [vec![1, 2], vec![3, 4]];
/// let t = a[0][1]; /// let t = a[0][1];
/// a[0][1] = a[1][0]; /// a[0][1] = a[1][0];
/// a[1][0] = t; /// a[1][0] = t;