Skip to content

Commit ce526a9

Browse files
author
Noel Roemmele
committed
Updated all names of doctests.
1 parent 7114e8d commit ce526a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/combinat/tuple.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def unrank(self, i):
113113
sage: all(T[i] == x for i,x in enumerate(T))
114114
True
115115
116-
Verify that `unrank` is fast for large inputs. ::
116+
Verify that :meth:`unrank` is fast for large inputs::
117117
118118
sage: Tuples(range(3), 30)[10^12]
119119
(1, 0, 0, 1, 1, 1, 2, 0, 1, 2, 0, 1, 1, 0, 2, 1, 1, 0, 1, 2, 1, 2,
120120
1, 1, 0, 1, 0, 0, 0, 0)
121121
122-
Verify that `unrank` normalizes ``i``. ::
122+
Verify that :meth:`unrank` normalizes ``i``::
123123
124124
sage: T = Tuples(range(3), 2)
125125
sage: T[QQ(4/2)]
@@ -129,7 +129,7 @@ def unrank(self, i):
129129
...
130130
TypeError: no conversion of this rational to integer
131131
132-
Verify that `unrank` throws an error when ``i`` is out of bounds. ::
132+
Verify that :meth:`unrank` throws an error when ``i`` is out of bounds::
133133
134134
sage: T = Tuples(range(3), 3)
135135
sage: T[27]
@@ -141,19 +141,19 @@ def unrank(self, i):
141141
...
142142
IndexError: index out of range
143143
144-
Verify that `unrank` works correctly for Tuples where `k = 1`. ::
144+
Verify that :meth:`unrank` works correctly for Tuples where `k = 1`::
145145
146146
sage: T = Tuples(range(6), 1)
147147
sage: T[5]
148148
(5,)
149149
150-
Verify that `unrank` works when called directly. ::
150+
Verify that :meth:`unrank` works when called directly::
151151
152152
sage: T = Tuples(range(4), 3)
153153
sage: T.unrank(19)
154154
(3, 0, 1)
155155
156-
Verify that :issue:`39534` has been fixed. ::
156+
Verify that :issue:`39534` has been fixed::
157157
158158
sage: T = Tuples(range(3), 30).random_element()
159159
sage: all(v in range(3) for v in T)

0 commit comments

Comments
 (0)