Skip to content

Commit f8c144e

Browse files
authored
Docs: fix formatting of return value (#137)
1 parent 2635e6e commit f8c144e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/humanize/number.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def intword(value: NumberOrString, format: str = "%.1f") -> str:
222222
223223
Returns:
224224
str: Friendly text representation as a string, unless the value passed could not
225-
be coaxed into an `int`.
225+
be coaxed into an `int`.
226226
"""
227227
try:
228228
if not math.isfinite(float(value)):
@@ -287,8 +287,8 @@ def apnumber(value: NumberOrString) -> str:
287287
288288
Returns:
289289
str: For numbers 0-9, the number spelled out. Otherwise, the number. This always
290-
returns a string unless the value was not `int`-able, then `str(value)`
291-
is returned.
290+
returns a string unless the value was not `int`-able, then `str(value)`
291+
is returned.
292292
"""
293293
try:
294294
if not math.isfinite(float(value)):
@@ -479,8 +479,8 @@ def clamp(
479479
480480
Returns:
481481
str: Formatted number. The output is clamped between the indicated floor and
482-
ceil. If the number is larger than ceil or smaller than floor, the output will
483-
be prepended with a token indicating as such.
482+
ceil. If the number is larger than ceil or smaller than floor, the output
483+
will be prepended with a token indicating as such.
484484
485485
"""
486486
if value is None:

0 commit comments

Comments
 (0)