]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/locals/locals-docs.factor
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places...
[factor.git] / basis / locals / locals-docs.factor
index b1f0b6ca1732b3d59b6092d32b665c1d04d08ea2..0f94e0591a675fcf4448fbd6d1e762fc2d8ed7e2 100644 (file)
@@ -175,8 +175,8 @@ $nl
 { $code
     ":: counter ( -- )"
     "    [let | value! [ 0 ] |"
-    "        [ value 1+ dup value! ]"
-    "        [ value 1- dup value! ] ] ;"
+    "        [ value 1 + dup value! ]"
+    "        [ value 1 - dup value! ] ] ;"
 }
 "Mutable bindings are implemented in a manner similar to the ML language; each mutable binding is actually an immutable binding of a mutable cell (in Factor's case, a 1-element array); reading the binding automatically dereferences the array, and writing to the binding stores into the array."
 $nl