Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8f04abe

Browse files
madpinklivecodeali
authored andcommitted
Update ParseStringAsNumber dictionary (#6627)
Examples provided in ParseStringAsNumber were incorrect
1 parent 4410ce0 commit 8f04abe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libscript/src/arithmetic.lcb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,13 @@ The result: <Operand> parsed as a number, or nothing.
590590
Example:
591591
variable tString as String
592592
put "5.6" into tString
593-
parse tString as Number -- the result is 5.6
593+
parse tString as number -- the result is 5.6
594594

595595
Example:
596596
variable tResult as optional String
597597
variable tNum as optional Number
598-
parse "aaaa" as Number into tNum
598+
599+
parse "aaaa" as number into tNum
599600

600601
if tNum is nothing then
601602
put "unable to parse string" into tResult

0 commit comments

Comments
 (0)