Skip to content

Sockets - Shubha#34

Open
shubha-rajan wants to merge 2 commits intoAda-C11:masterfrom
shubha-rajan:master
Open

Sockets - Shubha#34
shubha-rajan wants to merge 2 commits intoAda-C11:masterfrom
shubha-rajan:master

Conversation

@shubha-rajan
Copy link
Copy Markdown

No description provided.

Comment thread lib/factorial.rb
end
return factorial
else
raise ArgumentError, "Input must be an integer"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend having error handling at the top rather than the bottom so you break early. Something such as:

if !number 
  raise
else 
  do factorial
end

Otherwise good job on this assignment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants