diff runtime/doc/eval.txt @ 17676:14ac8c31e598 v8.1.1835

patch 8.1.1835: cannot use printf() as a method commit https://github.com/vim/vim/commit/fd8ca21b3ff207e44891aef922935d4adcd140cf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 10 00:13:30 2019 +0200 patch 8.1.1835: cannot use printf() as a method Problem: Cannot use printf() as a method. Solution: Pass the base as the second argument to printf().
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Aug 2019 00:15:05 +0200
parents 06c3e15ad84d
children 55704f587945
line wrap: on
line diff
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6739,7 +6739,11 @@ printf({fmt}, {expr1} ...)				*printf()*
 <		May result in:
 			"  99: E42 asdfasdfasdfasdfasdfasdfasdfas" ~
 
-		Often used items are:
+		When used as a |method| the base is passed as the second
+		argument: >
+			Compute()->printf("result: %d")
+
+<		Often used items are:
 		  %s	string
 		  %6S	string right-aligned in 6 display cells
 		  %6s	string right-aligned in 6 bytes