Skip to content

Commit

Permalink
topk: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Aug 25, 2018
1 parent e37182b commit eecc2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/topk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ where
/// } else {
/// x
/// };
/// tk.add(x);
/// tk.add(y);
/// }
///
/// // later
/// let elements: Vec<u64> = tk.iter().collect();
/// assert_eq!(elements, vec![0, 1]);
/// assert_eq!(elements, vec![1, 0]);
/// ```
///
/// # Applications
Expand Down

0 comments on commit eecc2d2

Please sign in to comment.