#3191: fix round() docs and docstring.

This commit is contained in:
Georg Brandl 2008-07-01 20:39:59 +00:00
parent 13b6d0df63
commit 809ddaaafb
2 changed files with 9 additions and 5 deletions

View file

@ -1726,8 +1726,8 @@ PyDoc_STRVAR(round_doc,
"round(number[, ndigits]) -> floating point number\n\
\n\
Round a number to a given precision in decimal digits (default 0 digits).\n\
This returns an int when called with one argument, otherwise a float.\n\
Precision may be negative.");
This returns an int when called with one argument, otherwise a the\n\
same type as the number. ndigits may be negative.");
static PyObject *