From c721354b73508ec53bf72d8e7fb304147676625d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 13 Feb 2018 11:17:26 -0500 Subject: [PATCH] correct doc comment in self hosted parser --- std/zig/parser.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/std/zig/parser.zig b/std/zig/parser.zig index 4dbca8501e..792cc2d834 100644 --- a/std/zig/parser.zig +++ b/std/zig/parser.zig @@ -95,7 +95,8 @@ pub const Parser = struct { }; /// Returns an AST tree, allocated with the parser's allocator. - /// Result should be freed with `freeAst` when done. + /// Result should be freed with tree.deinit() when there are + /// no more references to any AST nodes of the tree. pub fn parse(self: &Parser) !Tree { var stack = self.initUtilityArrayList(State); defer self.deinitUtilityArrayList(stack);