Merge pull request #94 from sodar23/master

修正ch5-05单词缺少字符
pull/95/head
Xargin 2021-05-05 05:50:25 +08:00 committed by GitHub
commit 530e2c3169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func forEachNode(n *html.Node, pre, post func(n *html.Node)) {
}
```
该函数接收2个函数作为参数分别在结点的孩子被访问前和访问后调用。这样的设计给调用者更大的灵活性。举个例子现在我们有startElemen和endElement两个函数用于输出HTML元素的开始标签和结束标签`<b>...</b>`
该函数接收2个函数作为参数分别在结点的孩子被访问前和访问后调用。这样的设计给调用者更大的灵活性。举个例子现在我们有startElement和endElement两个函数用于输出HTML元素的开始标签和结束标签`<b>...</b>`
```Go
var depth int