Skip to content

Commit

Permalink
Simplify a sample code (ruby#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored and k0kubun committed Aug 17, 2019
1 parent dce1e14 commit 72adc6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/fact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ def fact(n)
n.downto(1) do |i|
f *= i
end
return f
f
end
print fact(ARGV[0].to_i), "\n"
puts fact(ARGV[0].to_i)

0 comments on commit 72adc6c

Please sign in to comment.