]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix minor docs markup errors.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 14 Mar 2015 19:32:41 +0000 (21:32 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 14 Mar 2015 19:32:41 +0000 (21:32 +0200)
Doc/library/decimal.rst
Doc/library/profile.rst
Doc/tutorial/datastructures.rst

index d5ba4f09a97dcfc5fd88fdef4254d503a7d927ca..564d10c5f7d70a2176a6440e22fd2612545aaf29 100644 (file)
@@ -236,7 +236,7 @@ For more advanced work, it may be useful to create alternate contexts using the
 Context() constructor.  To make an alternate active, use the :func:`setcontext`
 function.
 
-In accordance with the standard, the :mod:`Decimal` module provides two ready to
+In accordance with the standard, the :mod:`decimal` module provides two ready to
 use standard contexts, :const:`BasicContext` and :const:`ExtendedContext`. The
 former is especially useful for debugging because many of the traps are
 enabled:
index 0fb14892ff1f75cf2ce75d02424b94472269d8cb..c7007a6ccdeae5a6b08c2198b8234685656d5847 100644 (file)
@@ -663,7 +663,7 @@ you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
 
       pr = cProfile.Profile(your_integer_time_func, 0.001)
 
-   As the :mod:`cProfile.Profile` class cannot be calibrated, custom timer
+   As the :class:`cProfile.Profile` class cannot be calibrated, custom timer
    functions should be used with care and should be as fast as possible.  For
    the best results with a custom timer, it might be necessary to hard-code it
    in the C source of the internal :mod:`_lsprof` module.
index 2d79a00398ae5a0e0326d17d2f6559fd44183e97..89589bc02deb89405a3c9e5dfb2b522cd31a0fc5 100644 (file)
@@ -179,9 +179,9 @@ There are three built-in functions that are very useful when used with lists:
 
 ``filter(function, sequence)`` returns a sequence consisting of those items from
 the sequence for which ``function(item)`` is true. If *sequence* is a
-:class:`string` or :class:`tuple`, the result will be of the same type;
-otherwise, it is always a :class:`list`. For example, to compute a sequence of
-numbers divisible by 3 or 5::
+:class:`str`, :class:`unicode` or :class:`tuple`, the result will be of the
+same type; otherwise, it is always a :class:`list`.  For example, to compute a
+sequence of numbers divisible by 3 or 5::
 
    >>> def f(x): return x % 3 == 0 or x % 5 == 0
    ...