Skip to content

Commit

Permalink
Fix rustdoc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Dec 3, 2019
1 parent 1e3b24d commit aa2381d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clippy_lints/src/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ enum Slice<'a> {
/// ## Example
///
/// ```rust
/// # let mut a = vec![0, 1];
/// let t = a[1];
/// a[1] = a[0];
/// a[0] = t;
Expand All @@ -180,6 +181,7 @@ enum Slice<'a> {
/// ## Example
///
/// ```rust
/// # let mut a = [vec![1, 2], vec![3, 4]];
/// let t = a[0][1];
/// a[0][1] = a[1][0];
/// a[1][0] = t;
Expand Down

0 comments on commit aa2381d

Please sign in to comment.