summaryrefslogtreecommitdiff
path: root/sample/t1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/t1.rb')
-rw-r--r--sample/t1.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/t1.rb b/sample/t1.rb
index 98d3b52..701a1cd 100644
--- a/sample/t1.rb
+++ b/sample/t1.rb
@@ -1,12 +1,12 @@
def test(a1, *a2)
while 1
- switch gets()
- case nil
+ case gets()
+ when nil
break
- case /^-$/
+ when /^-$/
print("-\n")
return
- case /^-help/
+ when /^-help/
print("-help\n")
break
end