From d84821852a32d1314a8fcb5fa4180e3beecea39c Mon Sep 17 00:00:00 2001
From: Leonard Richardson
Date: Mon, 23 Jan 2023 11:27:18 -0500
Subject: Corrected a typo in several translations of the documentation.
---
doc.zh/source/index.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'doc.zh')
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`_ )
# Tillie;
# and they lived at the bottom of a well.
- a_string.find_parents("p", class="title")
+ a_string.find_parents("p", class_="title")
# []
文档中的一个标签是是当前叶子节点的直接父节点,所以可以被找到.还有一个标签,是目标叶子节点的间接父辈节点,所以也可以被找到.包含class值为"title"的
标签不是不是目标叶子节点的父辈节点,所以通过 ``find_parents()`` 方法搜索不到.
--
cgit v1.2.3