refactor: Replace poll with pop in Queue and Deque (#415)

This commit is contained in:
Yudong Jin
2023-03-13 21:58:21 +08:00
committed by GitHub
parent 2d17ee8e92
commit 8aebbaad21
77 changed files with 261 additions and 261 deletions

View File

@@ -27,8 +27,8 @@ pub fn main() {
println!("\n队首元素 peek = {peek}");
// 元素出队
let poll = queue.pop_front().unwrap();
print!("出队元素 poll = {poll},出队后 queue = ");
let pop = queue.pop_front().unwrap();
print!("出队元素 pop = {pop},出队后 queue = ");
print_util::print_queue(&queue);
// 获取队列的长度