Index: tests/regressiontests/templates/tests.py
===================================================================
--- tests/regressiontests/templates/tests.py	(revision 5127)
+++ tests/regressiontests/templates/tests.py	(working copy)
@@ -219,6 +219,9 @@
             # value will be converted to a bytestring.
             'filter-syntax18': (r'{{ var }}', {'var': UnicodeInStrClass()}, '\xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91'),
 
+            # Numbers as filter arguments should work
+            'filter-syntax19': ('{{ var|truncatewords:1 }}', {"var": "hello world"}, "hello ..."),
+
             ### COMMENT SYNTAX ########################################################
             'comment-syntax01': ("{# this is hidden #}hello", {}, "hello"),
             'comment-syntax02': ("{# this is hidden #}hello{# foo #}", {}, "hello"),
Index: docs/templates.txt
===================================================================
--- docs/templates.txt	(revision 5127)
+++ docs/templates.txt	(working copy)
@@ -92,8 +92,8 @@
 then converting line breaks to ``<p>`` tags.
 
 Some filters take arguments. A filter argument looks like this:
-``{{ bio|truncatewords:"30" }}``. This will display the first 30 words of the
-``bio`` variable. Filter arguments always are in double quotes.
+``{{ bio|truncatewords:30 }}``. This will display the first 30 words of the
+``bio`` variable. 
 
 The `Built-in filter reference`_ below describes all the built-in filters.
 
