From 738397f2da2722e51b08ca82723849d72ecc821a Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Sat, 7 Apr 2018 18:07:02 +0200 Subject: [PATCH] visitor : fix typo and doc comment --- visitor/dumper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visitor/dumper.go b/visitor/dumper.go index 150bc2f..658e271 100644 --- a/visitor/dumper.go +++ b/visitor/dumper.go @@ -13,7 +13,7 @@ import ( "github.com/z7zmey/php-parser/walker" ) -// Dumper prints ast hierarchy to stdout +// Dumper writes ast hierarchy to Writer // Also prints comments and positions attached to nodes type Dumper struct { Writer io.Writer @@ -23,7 +23,7 @@ type Dumper struct { NsResolver *NamespaceResolver } -// EnterNode is invoked at every node in heirerchy +// EnterNode is invoked at every node in hierarchy func (d Dumper) EnterNode(w walker.Walkable) bool { n := w.(node.Node)