Skip to content

Commit

Permalink
Fix typo (google#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyukki authored and adonovan committed Nov 29, 2017
1 parent 71da662 commit e70ab63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -2264,7 +2264,7 @@ _function body_.
Example:

```python
func map(f, list):
def map(f, list):
return [f(x) for x in list]

map(lambda x: 2*x, range(3)) # [2, 4, 6]
Expand Down Expand Up @@ -3557,7 +3557,7 @@ that if the substring is not found, the operation fails.
<a id='string·isalnum'></a>
### string·isalnum

`S.isalpha()` reports whether the string S is non-empty and consists only
`S.isalnum()` reports whether the string S is non-empty and consists only
Unicode letters and digits.

```python
Expand Down

0 comments on commit e70ab63

Please sign in to comment.