mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 05:14:46 -04:00
doc: Correct Scratch slice example
This commit is contained in:
parent
a9af9cb04d
commit
7bc6931850
@ -45,7 +45,7 @@ The usage is best illustrated with some samples:
|
|||||||
{{ $.Scratch.Add "l1" (slice "A" "B") }}
|
{{ $.Scratch.Add "l1" (slice "A" "B") }}
|
||||||
{{ $.Scratch.Get "l1" }} {{/* => [A B] */}}
|
{{ $.Scratch.Get "l1" }} {{/* => [A B] */}}
|
||||||
{{ $.Scratch.Add "l1" (slice "C" "D") }}
|
{{ $.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.Set "v1" 123 }}
|
||||||
{{ $.Scratch.Get "v1" }} {{/* => 123 */}}
|
{{ $.Scratch.Get "v1" }} {{/* => 123 */}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user