Skip to content

Commit 696a374

Browse files
authored
docs: minor fix regarding operator[] (#1134)
1 parent 70097d8 commit 696a374

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/api_core.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,8 @@ Wrapper classes
656656
Wrapper class representing Python ``tuple`` instances.
657657

658658
Use the standard ``operator[]`` C++ operator with an integer argument to
659-
read tuple elements (the bindings for this operator are provided by the
660-
parent class and not listed here). Once created, the set is immutable and
661-
its elements cannot be replaced.
659+
read tuple elements.
660+
Once created, the tuple is immutable and its elements cannot be replaced.
662661

663662
Use the :py:func:`make_tuple` function to create new tuples.
664663

@@ -704,8 +703,7 @@ Wrapper classes
704703
Wrapper class representing Python ``list`` instances.
705704

706705
Use the standard ``operator[]`` C++ operator with an integer argument to
707-
read and write list elements (the bindings for this operator are provided by
708-
the parent class and not listed here).
706+
read and write list elements.
709707

710708
Use the :cpp:func:`nb::del <del>` function to remove elements.
711709

0 commit comments

Comments
 (0)