summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorSimon Törnqvist <simon.tornqvist@liu.se>2024-05-16 10:09:09 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-06-14 13:53:43 +0200
commite65b7d5b069a815a9a07f48219cd6bb9a4a663c1 (patch)
treee6b1b7fcb7aef1f081fc7c7b2efb4ffcd1ebdcde /docs/ref
parentbf9a89f5d1ffa56fa1b37ebf23cba00fdb62f6d0 (diff)
[5.1.x] Fixed #35443 -- Changed ordinal to return negative numbers unchanged.
Previously, `-1` was converted to `"-1th"`. This has been updated to return negative numbers "as is", so that for example `-1` is converted to `"-1"`. This is now explicit in the docs. Co-authored-by: Martin Jonson <artin.onson@gmail.com> Backport of d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83 from main.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/humanize.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/contrib/humanize.txt b/docs/ref/contrib/humanize.txt
index 7c1af53ed3..1596f30b97 100644
--- a/docs/ref/contrib/humanize.txt
+++ b/docs/ref/contrib/humanize.txt
@@ -143,3 +143,4 @@ Examples:
* ``3`` becomes ``3rd``.
You can pass in either an integer or a string representation of an integer.
+Negative integers are returned unchanged.