Skip to content

Commit

Permalink
correct doc comment in self hosted parser
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Feb 13, 2018
1 parent 02f70cd commit c721354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/zig/parser.zig
Expand Up @@ -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);
Expand Down

0 comments on commit c721354

Please sign in to comment.