Permalink
Browse files

fix example.

  • Loading branch information...
1 parent f026450 commit fd25fd3433755de09b0c652c7848e66c11b62d25 @mattn mattn committed Dec 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 example/fs.rb
View
4 example/fs.rb
@@ -2,10 +2,10 @@
UV::FS::mkdir("foo-bar") do
f = UV::FS::open("foo-bar/foo.txt", UV::FS::O_CREAT|UV::FS::O_WRONLY, UV::FS::S_IWRITE | UV::FS::S_IREAD)
- f.write("fooo") do
+ f.write("helloworld") do
f.close() do
f = UV::FS::open("foo-bar/foo.txt", UV::FS::O_RDONLY, UV::FS::S_IREAD) do
- puts f.read(3)
+ puts f.read(5)
puts f.read()
f.close() do
UV::FS::unlink("foo-bar/foo.txt") do

0 comments on commit fd25fd3

Please sign in to comment.