Skip to content

Commit

Permalink
Replace <try> with <maybe>
Browse files Browse the repository at this point in the history
  • Loading branch information
hostilefork committed Jul 28, 2023
1 parent c5a9f1a commit e5edad2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js-css-interop.reb
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ js-do-url-helper: js-awaiter [ ; https://stackoverflow.com/a/14521482
js-do: func [
{Execute JavaScript file or evaluate a string of JavaScript source}

return: [<opt> bad-word!] ; What useful return result could there be?
return: <none> ; What useful return result could there be?
source "If BLOCK!, interpreted in JS-DO dialect (substitutes @-values)"
[<try> block! text! file! url! tag!]
[<maybe> block! text! file! url! tag!]
/automime "Subvert incorrect server MIME-type by requesting via fetch()"
/local "Run code in a local scope, rather than global"
/module "Execute JS code as a module"
Expand Down
6 changes: 3 additions & 3 deletions replpad.reb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ replpad-write-js: js-awaiter [
{Output lines of text to the REPLPAD (no automatic newline after)}

return: <none>
param [<try> text!]
param [<maybe> text!]
/html
]{
let param = reb.Spell(reb.ArgR('param'))
Expand Down Expand Up @@ -262,8 +262,8 @@ replpad-write-js: js-awaiter [
replpad-write: func [
{Output a string of text to the REPLPAD (no automatic newline after)}

return: [<opt> bad-word!]
param [<try> text!]
return: <none>
param [<maybe> text!]
/html
][
if html [
Expand Down

0 comments on commit e5edad2

Please sign in to comment.