mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
Fix example code syntax in README.md (#36)
This commit is contained in:
parent
26d9ecc3f4
commit
245e809df3
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ end
|
|||
```ruby
|
||||
Rhino::Context.open do |context|
|
||||
context["say"] = lambda {|word, times| word * times}
|
||||
context.eval("say("Hello", 3)") #=> HelloHelloHello
|
||||
context.eval("say('Hello', 3)") #=> HelloHelloHello
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue