mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-20 05:29:48 +00:00
CONTRIBUTING.md: Fix mistake in doctest ;-) (#1266)
* CONTRIBUTING.md: Fix mistake in doctest ;-) * Update CONTRIBUTING.md
This commit is contained in:
parent
9eac17a408
commit
6ebd899c01
@ -82,11 +82,11 @@ We want your work to be readable by others; therefore, we encourage you to note
|
|||||||
"""
|
"""
|
||||||
This function returns the sum of two integers a and b
|
This function returns the sum of two integers a and b
|
||||||
Return: a + b
|
Return: a + b
|
||||||
>>> sum(2, 2)
|
>>> sumab(2, 2)
|
||||||
4
|
4
|
||||||
>>> sum(-2, 3)
|
>>> sumab(-2, 3)
|
||||||
1
|
1
|
||||||
>>> sum(4.9, 6.1)
|
>>> sumab(4.9, 5.1)
|
||||||
10.0
|
10.0
|
||||||
"""
|
"""
|
||||||
return a + b
|
return a + b
|
||||||
|
Loading…
x
Reference in New Issue
Block a user