From 953fbda6c22af1ea0269ed533265268b805e324c Mon Sep 17 00:00:00 2001 From: mattip Date: Wed, 18 Apr 2018 00:56:41 +0300 Subject: fixes from review --- numpy/core/arrayprint.py | 12 ++++++------ numpy/core/code_generators/ufunc_docstrings.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'numpy') diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index ad0f630ba..adbbab6ed 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -990,7 +990,7 @@ def format_float_scientific(x, precision=None, unique=True, trim='k', * 'k' : keep trailing zeros, keep decimal point (no trimming) * '.' : trim all trailing zeros, leave decimal point * '0' : trim all but the zero before the decimal point. Insert the - zero if it is missing. + zero if it is missing. * '-' : trim trailing zeros and any trailing decimal point sign : boolean, optional Whether to show the sign for positive values. @@ -1060,11 +1060,11 @@ def format_float_positional(x, precision=None, unique=True, trim : one of 'k', '.', '0', '-', optional Controls post-processing trimming of trailing digits, as follows: - 'k' : keep trailing zeros, keep decimal point (no trimming) - '.' : trim all trailing zeros, leave decimal point - '0' : trim all but the zero before the decimal point. Insert the - zero if it is missing. - '-' : trim trailing zeros and any trailing decimal point + * 'k' : keep trailing zeros, keep decimal point (no trimming) + * '.' : trim all trailing zeros, leave decimal point + * '0' : trim all but the zero before the decimal point. Insert the + zero if it is missing. + * '-' : trim trailing zeros and any trailing decimal point sign : boolean, optional Whether to show the sign for positive values. pad_left : non-negative integer, optional diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index c51b3cae1..bd90d0460 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -3744,7 +3744,7 @@ add_newdoc('numpy.core.umath', 'ldexp', add_newdoc('numpy.core.umath', 'gcd', """ - Returns the greatest common divisor of x1 and x2 + Returns the greatest common divisor of ``|x1|`` and ``|x2|`` Parameters ---------- @@ -3774,7 +3774,7 @@ add_newdoc('numpy.core.umath', 'gcd', add_newdoc('numpy.core.umath', 'lcm', """ - Returns the lowest common multiple of x1 and x2 + Returns the lowest common multiple of ``|x1|`` and ``|x2|`` Parameters ---------- -- cgit v1.2.1