Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ockajak committed Jul 29, 2024
1 parent 35a6466 commit d686396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ a.group_by(|x| x % 2); // HashMap::from([(0, vec![2]), (1,

a.delete(&1).add(2).unique(); // vec![2, 3]

a.substitute_at(0, 4).to_list(); // LinkedList::from([4, 2, 3])
a.substitute_at(0, 4).into_list(); // LinkedList::from([4, 2, 3])

a.position_multi(|&x| x % 2 == 1); // vec![0, 2]

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
//! a.delete(&1).add(2).unique(); // vec![2, 3]
//!
//! # let a = source.clone();
//! a.substitute_at(0, 4).to_list(); // LinkedList::from([4, 2, 3])
//! a.substitute_at(0, 4).into_list(); // LinkedList::from([4, 2, 3])
//!
//! # let a = source.clone();
//! a.position_multi(|&x| x % 2 == 1); // vec![0, 2]
Expand Down

0 comments on commit d686396

Please sign in to comment.