Skip to content

Commit

Permalink
fix Adjacent sibling combinator example (#272)
Browse files Browse the repository at this point in the history
the selector is wrong, it's same as General sibling combinator.
  • Loading branch information
borgle authored Jul 18, 2024
1 parent e0d4979 commit 25631bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/markdown/selectors/combinators.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ prevsibling + nextsibling
... </html>
... """
>>> soup = bs(html, 'html5lib')
>>> print(soup.select('h1 ~ p'))
>>> print(soup.select('h1 + p'))
[<p>Paragraph 1</p>]
```
///
Expand Down

0 comments on commit 25631bd

Please sign in to comment.