Skip to content

Commit aa0ba80

Browse files
mantepsedimpase
authored andcommitted
further clarify docstring
1 parent bcac6d4 commit aa0ba80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,8 @@ def is_trivial(self):
13701370
Return ``True`` if this group is the trivial group.
13711371
13721372
A permutation group is trivial, if it consists only of the
1373-
identity element, that is, if it has no generators.
1373+
identity element, that is, if it has no generators or only
1374+
the trivial generator.
13741375
13751376
EXAMPLES::
13761377
@@ -1385,6 +1386,7 @@ def is_trivial(self):
13851386
False
13861387
sage: DihedralGroup(1).is_trivial()
13871388
False
1389+
13881390
"""
13891391
return not self._gens or (len(self._gens) == 1 and self._gens[0].is_one())
13901392

0 commit comments

Comments
 (0)