mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
doc: Correct Scratch slice example
This commit is contained in:
1 parent
c7d2260420
commit
429b669a29
1 file changed
+1
-1
@@ -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 */}}
|
||||||
|
|||||||
Reference in new issue
Block a user