Skip to content

Commit c74d411

Browse files
committed
Enhance factorial module documentation
1 parent 8106aea commit c74d411

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

maths/factorial.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
"""
22
Factorial of a positive integer -- https://en.wikipedia.org/wiki/Factorial
33
"""
4+
"""
5+
Implementation of factorial algorithms (iterative and recursive).
46
7+
Provides:
8+
- Strict input validation
9+
- Doctest examples
10+
- Type hints
11+
"""
512

613
def factorial(number: int) -> int:
714
"""

0 commit comments

Comments
 (0)