1
0
Fork 0
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:
Ryunosuke Sato 2017-04-20 02:19:32 +09:00 committed by Karol Bucek
parent 26d9ecc3f4
commit 245e809df3

View file

@ -48,7 +48,7 @@ end
```ruby ```ruby
Rhino::Context.open do |context| Rhino::Context.open do |context|
context["say"] = lambda {|word, times| word * times} context["say"] = lambda {|word, times| word * times}
context.eval("say("Hello", 3)") #=> HelloHelloHello context.eval("say('Hello', 3)") #=> HelloHelloHello
end end
``` ```