summaryrefslogtreecommitdiffstats
path: root/b.rb
diff options
context:
space:
mode:
Diffstat (limited to 'b.rb')
-rwxr-xr-xb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/b.rb b/b.rb
index 2acbcf2..617cd8b 100755
--- a/b.rb
+++ b/b.rb
@@ -7,7 +7,7 @@ f.write("\0" * PAGESIZE)
f.write("b.rb")
f.write("\0" * PAGESIZE)
f.close
-m = Mmap.new("aa", "rw", "offset" => 0)
+m = Mmap.new("aa", "w", "offset" => 0)
p m.size == "b.rb".size + 2 * PAGESIZE
p m.scan(/[a-z.]+/) == ["b.rb"]
p m.index("b.rb") == PAGESIZE