mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
Merge pull request #2722 from pgray-hiro/feat/var-set-return-value
docs: added text on the return value of var-set
This commit is contained in:
@@ -454,7 +454,7 @@ const SET_VAR_API: SpecialAPI = SpecialAPI {
|
||||
output_type: "bool",
|
||||
signature: "(var-set var-name expr1)",
|
||||
description: "The `var-set` function sets the value associated with the input variable to the
|
||||
inputted value.",
|
||||
inputted value. The function always returns `true`.",
|
||||
example: "
|
||||
(define-data-var cursor int 6)
|
||||
(var-get cursor) ;; Returns 6
|
||||
|
||||
Reference in New Issue
Block a user