From c245b8705ff15b1aeb49ebbc7a89fa45d41c24ed Mon Sep 17 00:00:00 2001 From: sogaiu <33044872+sogaiu@users.noreply.github.com> Date: Thu, 23 Feb 2023 00:28:08 +0900 Subject: [PATCH] Express NaN as math/nan May be it's a bit nicer to express `NaN` as `math/nan` as the latter can be used in Janet code while the former doesn't currently seem to work out-of-the-box in the manner implied by the text. --- content/docs/syntax.mdz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/syntax.mdz b/content/docs/syntax.mdz index 1c7d12ad..a2a034eb 100644 --- a/content/docs/syntax.mdz +++ b/content/docs/syntax.mdz @@ -204,7 +204,7 @@ Structs are represented by a sequence of whitespace-delimited key-value pairs surrounded by curly braces. The sequence is defined as key1, value1, key2, value2, etc. There must be an even number of items between curly braces or the parser will signal a parse error. Any value can be a key or value. Using -@code`nil` or @code`NaN` as a key, however, will drop that pair from the parsed +@code`nil` or @code`math/nan` as a key, however, will drop that pair from the parsed struct. @codeblock[janet]```