mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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
|
||||
Return: a + b
|
||||
>>> sum(2, 2)
|
||||
>>> sumab(2, 2)
|
||||
4
|
||||
>>> sum(-2, 3)
|
||||
>>> sumab(-2, 3)
|
||||
1
|
||||
>>> sum(4.9, 6.1)
|
||||
>>> sumab(4.9, 5.1)
|
||||
10.0
|
||||
"""
|
||||
return a + b
|
||||
|
Loading…
Reference in New Issue
Block a user