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:
Aaron Blankstein
2021-06-23 12:08:14 -05:00
committed by GitHub

View File

@@ -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