瀏覽代碼

Swap order of `prev` and `next`

gingerBill 2 年之前
父節點
當前提交
53380632a1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/container/intrusive/list/intrusive_list.odin

+ 1 - 1
core/container/intrusive/list/intrusive_list.odin

@@ -20,7 +20,7 @@ List :: struct {
 
 
 Node :: struct {
-	next, prev: ^Node,
+	prev, next: ^Node,
 }
 
 push_front :: proc(list: ^List, node: ^Node) {