Skip to content

Commit 25631bd

Browse files
authored
fix Adjacent sibling combinator example (#272)
the selector is wrong, it's same as General sibling combinator.
1 parent e0d4979 commit 25631bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/markdown/selectors/combinators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ prevsibling + nextsibling
156156
... </html>
157157
... """
158158
>>> soup = bs(html, 'html5lib')
159-
>>> print(soup.select('h1 ~ p'))
159+
>>> print(soup.select('h1 + p'))
160160
[<p>Paragraph 1</p>]
161161
```
162162
///

0 commit comments

Comments
 (0)