aboutsummaryrefslogtreecommitdiff
path: root/std/linked_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-08 10:34:45 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-08 10:34:45 -0500
commit5a8d87f5042b5ab86de7c72df4ce84a314878e40 (patch)
treed9a8e14011994c5ebdf4525ea5c5b647aae91a6e /std/linked_list.zig
parent38658a597bc22697c2038c21bdec9f04c9973eb8 (diff)
parent598170756cd91b6f300921d256baa72141ec3098 (diff)
downloadzig-5a8d87f5042b5ab86de7c72df4ce84a314878e40.tar.gz
zig-5a8d87f5042b5ab86de7c72df4ce84a314878e40.zip
Merge branch 'master' into llvm6
Diffstat (limited to 'std/linked_list.zig')
-rw-r--r--std/linked_list.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/linked_list.zig b/std/linked_list.zig
index 3c516dab7d..c33db4424b 100644
--- a/std/linked_list.zig
+++ b/std/linked_list.zig
@@ -188,7 +188,7 @@ pub fn LinkedList(comptime T: type) -> type {
/// Returns:
/// A pointer to the new node.
pub fn createNode(list: &Self, data: &const T, allocator: &Allocator) -> %&Node {
- var node = %return list.allocateNode(allocator);
+ var node = try list.allocateNode(allocator);
*node = Node.init(data);
return node;
}