Skip to content

Commit cca6f53

Browse files
Update error message in doctest
1 parent 046a6a4 commit cca6f53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/data-structures/misc/libsemigroups-error.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ for further details.
2727

2828
>>> from libsemigroups_pybind11 import FroidurePin, Perm
2929
>>> gens = [Perm([3, 0, 1, 2]), Perm([1, 2, 0, 3]), Perm([2, 1, 0, 3])]
30-
>>> S = FroidurePin(gens[0])
31-
>>> S.add_generators(gens[1:])
30+
>>> S = FroidurePin(gens)
31+
>>> S
3232
<partially enumerated FroidurePin with 3 generators, 3 elements, Cayley graph ⌀ 1, & 0 rules>
3333

3434
>>> S.generator(3) # Bad: there are only three generators
3535
Traceback (most recent call last):
3636
...
37-
_libsemigroups_pybind11.LibsemigroupsError: generator index out of bounds, expected value in [0, 3), got 3
37+
LibsemigroupsError: generator index out of bounds, expected value in [0, 3), got 3
3838

3939
.. note::
4040

0 commit comments

Comments
 (0)