summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 0d13e0a..7bee329 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -428,10 +428,10 @@ consolidated::
print(rel_soup.p)
# <p>Back to the <a rel="index contents">homepage</a></p>
-You can use ```string_attr`` to get the value of any attribute as a
+You can use ```get_attribute_text`` to get the value of any attribute as a
string, whether or not it's a multi-valued atribute::
- css_soup.p.string_attr('class')
+ css_soup.p.get_attribute_text('class')
# "body strikeout"
If you parse a document as XML, there are no multi-valued attributes::