Skip to content

Commit

Permalink
Fix queue.pop_back introduction mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
rokf committed Oct 12, 2023
1 parent d62c514 commit a2380e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concepts/queues/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Elements can be removed from the queue using the `queue.pop_front` and `queue.po
let one_to_four = queue.from_list([1, 2, 3, 4])
queue.pop_back(one_to_four)
// -> Ok(#(3, queue.from_list([1, 2, 3])))
// -> Ok(#(4, queue.from_list([1, 2, 3])))
queue.pop_front(one_to_four)
// -> Ok(#(1, queue.from_list([2, 3, 4])))
Expand Down
2 changes: 1 addition & 1 deletion concepts/queues/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Elements can be removed from the queue using the `queue.pop_front` and `queue.po
let one_to_four = queue.from_list([1, 2, 3, 4])
queue.pop_back(one_to_four)
// -> Ok(#(3, queue.from_list([1, 2, 3])))
// -> Ok(#(4, queue.from_list([1, 2, 3])))
queue.pop_front(one_to_four)
// -> Ok(#(1, queue.from_list([2, 3, 4])))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Elements can be removed from the queue using the `queue.pop_front` and `queue.po
let one_to_four = queue.from_list([1, 2, 3, 4])
queue.pop_back(one_to_four)
// -> Ok(#(3, queue.from_list([1, 2, 3])))
// -> Ok(#(4, queue.from_list([1, 2, 3])))
queue.pop_front(one_to_four)
// -> Ok(#(1, queue.from_list([2, 3, 4])))
Expand Down

0 comments on commit a2380e8

Please sign in to comment.