aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusei Yamanaka <yusei1128@gmail.com>2017-11-29 23:04:35 +0900
committeralandonovan <adonovan@google.com>2017-11-29 09:04:35 -0500
commite70ab63d2b010f3d059d8ab0ed37b8e48615e9a7 (patch)
treee82d379d6da4c9c1e6f6ffbe44653daf2d811b9a
parent71da662e0b778bcc80721ed7b372d6d45417b300 (diff)
downloadstarlark-go-e70ab63d2b010f3d059d8ab0ed37b8e48615e9a7.tar.gz
Fix typo (#47)
-rw-r--r--doc/spec.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/spec.md b/doc/spec.md
index 14a79a4..96b84ec 100644
--- a/doc/spec.md
+++ b/doc/spec.md
@@ -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]
@@ -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