| author | |
| committer | |
| log | a83db33ba2d5fddcc453735a7a0d9b57c67739a8 |
| tree | 99bbe12e0daf55c16dcd7dc3511378b03c3eb96b |
| parent | bd1e960bc0d20013d9458d35318c46e40bd8ff59 |
probably closes https://github.com/ziglang/zig/issues/167952 files changed, 3 insertions(+), 0 deletions(-)
lib/std/DoublyLinkedList.zig+1| ... | ... | @@ -105,6 +105,7 @@ pub fn prepend(list: *DoublyLinkedList, new_node: *Node) void { |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /// Remove a node from the list. |
| 108 | /// Assumes the node is in the list. | |
| 108 | 109 | /// |
| 109 | 110 | /// Arguments: |
| 110 | 111 | /// node: Pointer to the node to be removed. |
lib/std/SinglyLinkedList.zig+2| ... | ... | @@ -85,6 +85,8 @@ pub fn prepend(list: *SinglyLinkedList, new_node: *Node) void { |
| 85 | 85 | list.first = new_node; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | /// Remove `node` from the list. | |
| 89 | /// Assumes `node` is in the list. | |
| 88 | 90 | pub fn remove(list: *SinglyLinkedList, node: *Node) void { |
| 89 | 91 | if (list.first == node) { |
| 90 | 92 | list.first = node.next; |