Skip to content

Commit 4298364

Browse files
miharpclaude
andcommitted
Show the ScalarData match in the related types example
The surrounding text says Error is not Data, Scalar, or ScalarData, but the example only demonstrated the first two. Add the ScalarData check so the example covers every type the sentence claims, matching the equivalent section on the Binary page. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Michael Harp <mike@mikeharp.com>
1 parent cfccf41 commit 4298364

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/_openvox_8x/lang_data_error.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ $e = Error('boom')
118118
notice($e =~ RichData) # true
119119
notice($e =~ Data) # false
120120
notice($e =~ Scalar) # false
121+
notice($e =~ ScalarData) # false
121122
```
122123

123124
That matters when a parameter or function expects `Data`, which covers only the JSON-compatible types. Use

0 commit comments

Comments
 (0)