Skip to content

Commit cae0f5d

Browse files
crypt docs: Fix references to methods attr (GH-26806)
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 43571a3 commit cae0f5d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/crypt.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ The :mod:`crypt` module defines the following functions:
9696
:func:`mksalt`, one of the ``crypt.METHOD_*`` values (though not all
9797
may be available on all platforms), or a full encrypted password
9898
including salt, as returned by this function. If *salt* is not
99-
provided, the strongest method will be used (as returned by
100-
:func:`methods`).
99+
provided, the strongest method available in :attr:`methods` will be used.
101100

102101
Checking a password is usually done by passing the plain-text password
103102
as *word* and the full results of a previous :func:`crypt` call,
@@ -125,8 +124,8 @@ The :mod:`crypt` module defines the following functions:
125124
.. function:: mksalt(method=None, *, rounds=None)
126125

127126
Return a randomly generated salt of the specified method. If no
128-
*method* is given, the strongest method available as returned by
129-
:func:`methods` is used.
127+
*method* is given, the strongest method available in :attr:`methods` is
128+
used.
130129

131130
The return value is a string suitable for passing as the *salt* argument
132131
to :func:`crypt`.

0 commit comments

Comments
 (0)