Skip to content

Commit

Permalink
resolves #9294
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu007-creator committed May 19, 2021
1 parent 114a23b commit 98f7b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Math-Operations-Extensions/Integer.extension.st
Expand Up @@ -645,7 +645,7 @@ Integer >> slowFactorial [
"6 slowFactorial >>> 720"

self > 0
ifTrue: [ ^ self * (self - 1) factorial ].
ifTrue: [ ^ self * (self - 1) slowFactorial ].
self = 0
ifTrue: [ ^ 1 ].
self error: 'Not valid for negative integers'
Expand Down

0 comments on commit 98f7b1a

Please sign in to comment.