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

@@ -30,8 +30,8 @@ pub fn main() !void {
std.debug.print("\n队首元素 peek = {}", .{peek});
// 元素出队
var poll = queue.popFirst().?.data;
std.debug.print("\n出队元素 poll = {},出队后 queue = ", .{poll});
var pop = queue.popFirst().?.data;
std.debug.print("\n出队元素 pop = {},出队后 queue = ", .{pop});
inc.PrintUtil.printQueue(i32, queue);
// 获取队列的长度