help: rewrite template examples to use integer literals where appropriate
authorYuya Nishihara <yuya@tcha.org>
Sat, 02 May 2015 15:51:57 +0900
changeset 25004 e264d4c9629b
parent 25003 5e584edbb211
child 25005 5ddbb024c2e9
help: rewrite template examples to use integer literals where appropriate
mercurial/help/templates.txt
--- a/mercurial/help/templates.txt	Sat May 02 15:49:38 2015 +0900
+++ b/mercurial/help/templates.txt	Sat May 02 15:51:57 2015 +0900
@@ -67,7 +67,7 @@
 
 - Output the description set to a fill-width of 30::
 
-   $ hg log -r 0 --template "{fill(desc, '30')}"
+   $ hg log -r 0 --template "{fill(desc, 30)}"
 
 - Use a conditional to test for the default branch::
 
@@ -104,4 +104,4 @@
 
 - Print the first word of each line of a commit message::
 
-   $ hg log --template "{word(\"0\", desc)}\n"
+   $ hg log --template "{word(0, desc)}\n"