summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-12-12 13:48:58 +0900
committerGitHub <[email protected]>2018-12-12 13:48:58 +0900
commitec812c646fa9740e6309712065c26e0563795178 (patch)
treec47e74db162b4800167ab2378742e22f4a9ef894
parent730b9253321f422a1423f42c81b06dc5ba7fb546 (diff)
parent59651f43ad30dc48e2872b950697562d4a14e62a (diff)
downloadmruby-ec812c646fa9740e6309712065c26e0563795178.tar.gz
mruby-ec812c646fa9740e6309712065c26e0563795178.zip
Merge pull request #4185 from icm7216/fix-sleep-example
Fix sleep example
-rw-r--r--mrbgems/mruby-sleep/README.md6
-rw-r--r--mrbgems/mruby-sleep/example/sleep.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/mrbgems/mruby-sleep/README.md b/mrbgems/mruby-sleep/README.md
index 4543c49cf..7707cd040 100644
--- a/mrbgems/mruby-sleep/README.md
+++ b/mrbgems/mruby-sleep/README.md
@@ -8,15 +8,15 @@ MRuby::Build.new do |conf|
# ... (snip) ...
- conf.gem :git => 'https://github.com/matsumoto-r/mruby-sleep.git'
+ conf.gem :core => 'mruby-sleep'
end
```
## example
```ruby
-Sleep::sleep(10)
-Sleep::usleep(10000)
+sleep(10)
+usleep(10000)
```
# License
diff --git a/mrbgems/mruby-sleep/example/sleep.rb b/mrbgems/mruby-sleep/example/sleep.rb
index dfe86af27..e5acea3b2 100644
--- a/mrbgems/mruby-sleep/example/sleep.rb
+++ b/mrbgems/mruby-sleep/example/sleep.rb
@@ -1,3 +1,3 @@
-Sleep::sleep(10)
-Sleep::usleep(10000)
+sleep(10)
+usleep(10000)