authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-02-13 11:17:26-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-02-13 11:17:26-05:00
logc721354b73508ec53bf72d8e7fb304147676625d
tree4ff9ca4fd342e29562e1aa756c0d3c29e57ac3c1
parent02f70cda8a9fb038705e03b6e65625119bdef4e7

correct doc comment in self hosted parser


1 files changed, 2 insertions(+), 1 deletions(-)

std/zig/parser.zig+2-1
...@@ -95,7 +95,8 @@ pub const Parser = struct {...@@ -95,7 +95,8 @@ pub const Parser = struct {
95 };95 };
9696
97 /// Returns an AST tree, allocated with the parser's allocator.97 /// Returns an AST tree, allocated with the parser's allocator.
98 /// Result should be freed with `freeAst` when done.98 /// Result should be freed with tree.deinit() when there are
99 /// no more references to any AST nodes of the tree.
99 pub fn parse(self: &Parser) !Tree {100 pub fn parse(self: &Parser) !Tree {
100 var stack = self.initUtilityArrayList(State);101 var stack = self.initUtilityArrayList(State);
101 defer self.deinitUtilityArrayList(stack);102 defer self.deinitUtilityArrayList(stack);