doc: Correct Scratch slice example

This commit is contained in:
Bjørn Erik Pedersen 2016-03-06 16:38:17 +01:00
parent c7d2260420
commit 429b669a29

View file

@ -45,7 +45,7 @@ The usage is best illustrated with some samples:
{{ $.Scratch.Add "l1" (slice "A" "B") }}
{{ $.Scratch.Get "l1" }} {{/* => [A B] */}}
{{ $.Scratch.Add "l1" (slice "C" "D") }}
{{ $.Scratch.Get "l1" }} {{/* => [[A B C D] ] */}}
{{ $.Scratch.Get "l1" }} {{/* => [A B C D] */}}
{{ $.Scratch.Set "v1" 123 }}
{{ $.Scratch.Get "v1" }} {{/* => 123 */}}