summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorscharlatan <a.regenfuss@gmx.de>2016-02-09 08:57:23 +0100
committerscharlatan <a.regenfuss@gmx.de>2016-02-09 08:57:23 +0100
commit60bc966a9154e134e143c7cfeb001a93761e2d5e (patch)
tree566d92d62f7fd46fea11b34af9e265e8811a4323 /doc
parent783e13e96fccbb5278f5ab351673d29e20d4bf66 (diff)
downloadmc-60bc966a9154e134e143c7cfeb001a93761e2d5e.tar.gz
Fix representation in std.put in doc/lang.txt.
Diffstat (limited to 'doc')
-rw-r--r--doc/lang.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lang.txt b/doc/lang.txt
index 46a15b3..1de1a04 100644
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -351,7 +351,7 @@ TABLE OF CONTENTS:
std.put("Matched const value pat\n")
| `Val a:
std.put("Matched pattern with capture\n")
- std.put("Captured value: a = %i\n", a)
+ std.put("Captured value: a = {}\n", a)
| a
std.put("A top level bind matches anything.")
| `Val 111
@@ -753,7 +753,7 @@ TABLE OF CONTENTS:
const main = {
var x = 123
var y = 456
- std.put("The max of %i, %i is %i\n", x, y, intmax(x, y))
+ std.put("The max of {}, {} is {}\n", x, y, intmax(x, y))
}
TODO: DESCRIBE CONSTRUCTS.
@@ -770,7 +770,7 @@ TABLE OF CONTENTS:
}
const main = {
- std.put("The inner product is %i\n", innerprod([1,2,3], [4,5,6]))
+ std.put("The inner product is {}\n", innerprod([1,2,3], [4,5,6]))
}
TODO: DESCRIBE CONSTRUCTS.