From 2d1bdc0cfe2ebadd099beac642dbc637bab1f3e0 Mon Sep 17 00:00:00 2001 From: ralt0 Date: Mon, 26 Apr 2021 08:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3ch5-05=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch5/ch5-05.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch5/ch5-05.md b/ch5/ch5-05.md index 2b6f52b..360a207 100644 --- a/ch5/ch5-05.md +++ b/ch5/ch5-05.md @@ -66,7 +66,7 @@ func forEachNode(n *html.Node, pre, post func(n *html.Node)) { } ``` -该函数接收2个函数作为参数,分别在结点的孩子被访问前和访问后调用。这样的设计给调用者更大的灵活性。举个例子,现在我们有startElemen和endElement两个函数用于输出HTML元素的开始标签和结束标签`...`: +该函数接收2个函数作为参数,分别在结点的孩子被访问前和访问后调用。这样的设计给调用者更大的灵活性。举个例子,现在我们有startElement和endElement两个函数用于输出HTML元素的开始标签和结束标签`...`: ```Go var depth int