summaryrefslogtreecommitdiff
path: root/doc.zh
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-23 11:27:18 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-23 11:27:18 -0500
commitd84821852a32d1314a8fcb5fa4180e3beecea39c (patch)
tree915b376447d213a6946c856081b63a7291d155f6 /doc.zh
parente8008c8eb15f87543bc88c44e13fc921bf4b0212 (diff)
Corrected a typo in several translations of the documentation.
Diffstat (limited to 'doc.zh')
-rw-r--r--doc.zh/source/index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc.zh/source/index.rst b/doc.zh/source/index.rst
index 228ef88..990053f 100644
--- a/doc.zh/source/index.rst
+++ b/doc.zh/source/index.rst
@@ -1382,7 +1382,7 @@ find_parent( `name`_ , `attrs`_ , `recursive`_ , `string`_ , `**kwargs`_ )
# <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>;
# and they lived at the bottom of a well.</p>
- a_string.find_parents("p", class="title")
+ a_string.find_parents("p", class_="title")
# []
文档中的一个<a>标签是是当前叶子节点的直接父节点,所以可以被找到.还有一个<p>标签,是目标叶子节点的间接父辈节点,所以也可以被找到.包含class值为"title"的<p>标签不是不是目标叶子节点的父辈节点,所以通过 ``find_parents()`` 方法搜索不到.