Skip to content

Commit 15bcd28

Browse files
authored
Simplify first example
1 parent a27a5dc commit 15bcd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jinja/format-thousands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Here's how to format a number in Jinja with commas for thousands, without needing any custom filters or template functions:
44

5-
{{ "{:,}".format(row_count) }} row{{ "" if row_count == 1 else "s" }}
5+
{{ "{:,}".format(row_count) }}
66

77
Output looks like this:
88

0 commit comments

Comments
 (0)