Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtkana committed Mar 13, 2024
1 parent 38d8c74 commit 7b95610
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/veb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ impl<V> VebMap<V> {
/// ```
/// # use veb::VebMap;
/// let veb = VebMap::from_iter(vec![(12, "foo"), (34, "bar"), (56, "baz"), (78, "qux")]);
/// assert_eq!(veb.succ_eq(34), Some((34, &"bar"));
/// assert_eq!(veb.succ_eq(35), Some((56, &"baz"));
/// assert_eq!(veb.succ_eq(34), Some((34, &"bar")));
/// assert_eq!(veb.succ_eq(35), Some((56, &"baz")));
/// ```
pub fn succ_eq(&self, i: usize) -> Option<(usize, &V)> {
if let Some(v) = self.get(i) {
Expand Down Expand Up @@ -391,8 +391,8 @@ impl<V> VebMap<V> {
/// ```
/// # use veb::VebMap;
/// let veb = VebMap::from_iter(vec![(12, "foo"), (34, "bar"), (56, "baz"), (78, "qux")]);
/// assert_eq!(veb.pred_eq(34), Some((34, &"bar"));
/// assert_eq!(veb.pred_eq(35), Some((12, &"foo"));
/// assert_eq!(veb.pred_eq(34), Some((34, &"bar")));
/// assert_eq!(veb.pred_eq(35), Some((12, &"foo")));
/// ```
pub fn pred_eq(&self, i: usize) -> Option<(usize, &V)> {
if let Some(v) = self.get(i) {
Expand Down

0 comments on commit 7b95610

Please sign in to comment.