From 6a22ae9629fcea4bb4c0aaa2b7f5d6b7ca476bfb Mon Sep 17 00:00:00 2001 From: monabot Date: Sun, 9 Jul 2023 15:18:06 +0000 Subject: [PATCH] feat(docs): update docs Updates the Wing docs. See details in [workflow run]. [Workflow Run]: https://github.com/winglang/docsite/actions/runs/5500578392 ------ *Automatically created via the "update-docs" workflow* Signed-off-by: monabot --- .../04-standard-library/02-std/api-reference.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md index 6976997af..624a2f7ac 100644 --- a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md +++ b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md @@ -926,13 +926,13 @@ new std.Json() | **Name** | **Description** | | --- | --- | -| asBool | Convert Json element to number if possible. | +| asBool | Convert Json element to boolean if possible. | | asNum | Convert Json element to number if possible. | | asStr | Convert Json element to string if possible. | | get | Returns a specified element from the Json. | | getAt | Returns a specified element at a given index from Json Array. | | tryAsBool | Convert Json element to boolean if possible. | -| tryAsNum | Convert Json element to string if possible. | +| tryAsNum | Convert Json element to number if possible. | | tryAsStr | Convert Json element to string if possible. | | tryGet | Optionally returns an specified element from the Json. | | tryGetAt | Optionally returns a specified element at a given index from Json Array. | @@ -945,7 +945,7 @@ new std.Json() asBool(): bool ``` -Convert Json element to number if possible. +Convert Json element to boolean if possible. ##### `asNum` @@ -1009,7 +1009,7 @@ Convert Json element to boolean if possible. tryAsNum(): num ``` -Convert Json element to string if possible. +Convert Json element to number if possible. ##### `tryAsStr` @@ -1536,7 +1536,7 @@ new std.MutJson() | **Name** | **Description** | | --- | --- | -| asBool | Convert Json element to number if possible. | +| asBool | Convert Json element to boolean if possible. | | asNum | Convert Json element to number if possible. | | asStr | Convert Json element to string if possible. | | get | Returns a specified element from the Json. | @@ -1544,7 +1544,7 @@ new std.MutJson() | set | Adds or updates an element in MutJson with a specific key and value. | | setAt | Set element in MutJson Array with a specific key and value. | | tryAsBool | Convert Json element to boolean if possible. | -| tryAsNum | Convert Json element to string if possible. | +| tryAsNum | Convert Json element to number if possible. | | tryAsStr | Convert Json element to string if possible. | | tryGet | Optionally returns an specified element from the Json. | | tryGetAt | Optionally returns a specified element at a given index from Json Array. | @@ -1557,7 +1557,7 @@ new std.MutJson() asBool(): bool ``` -Convert Json element to number if possible. +Convert Json element to boolean if possible. ##### `asNum` @@ -1667,7 +1667,7 @@ Convert Json element to boolean if possible. tryAsNum(): num ``` -Convert Json element to string if possible. +Convert Json element to number if possible. ##### `tryAsStr`