summaryrefslogtreecommitdiff
path: root/sample/io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/io.rb')
-rw-r--r--sample/io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/io.rb b/sample/io.rb
index c3c1a47b281..c12e4f44981 100644
--- a/sample/io.rb
+++ b/sample/io.rb
@@ -1,7 +1,7 @@
# IO test
# usage: ruby io.rb file..
-home = getenv("HOME")
+home = ENV["HOME"]
home.sub("m", "&&")
print(home, "\n")
print(home.reverse, "\n")