Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e12dc28

Browse files
committed
Fix markup.
1 parent 9dc5bdd commit e12dc28

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/operator.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ their character equivalents.
238238
.. function:: length_hint(obj, default=0)
239239

240240
Return an estimated length for the object *o*. First trying to return its
241-
actual length, then an estimate using ``__length_hint__``, and finally
242-
returning the default value.
241+
actual length, then an estimate using :meth:`object.__length_hint__`, and
242+
finally returning the default value.
243243

244244
.. versionadded:: 3.4
245245

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ through the container; for mappings, :meth:`__iter__` should be the same as
18071807

18081808
.. method:: object.__length_hint__(self)
18091809

1810-
Called to implement ``operator.length_hint``. Should return an estimated
1810+
Called to implement :func:`operator.length_hint`. Should return an estimated
18111811
length for the object (which may be greater or less than the actual length).
18121812
The length must be an integer ``>=`` 0. This method is purely an
18131813
optimization and is never required for correctness.

0 commit comments

Comments
 (0)