Skip to content

Commit

Permalink
doc: three minor tweaks to spec
Browse files Browse the repository at this point in the history
Change-Id: If04ab510bf0746191e05a55f4fa2911b36e845c9
  • Loading branch information
adonovan committed Nov 27, 2019
1 parent aaf7be0 commit 698e61c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ Lookup of locals and globals may fail if not yet defined.

### Literals

Starlark supports string literals of three different kinds:
Starlark supports literals of three different kinds:

```grammar {.good}
Primary = int | float | string
Expand Down Expand Up @@ -2349,9 +2349,9 @@ the global dictionary of the current module.
The name of a function created by a lambda expression is `"lambda"`.
The two statements below are essentially equivalent, but that the
The two statements below are essentially equivalent, but the
function created by the `def` statement is named `twice` and the
function created by the lambda expression is called `lambda`.
function created by the lambda expression is named `lambda`.
```python
def twice(x):
Expand Down Expand Up @@ -2439,7 +2439,8 @@ pi, e = 3.141, 2.718
(x, y) = f()
[zero, one, two] = range(3)
[(a, b), (c, d)] = ("ab", "cd")
[(a, b), (c, d)] = {"a": "b", "c": "d"}.items()
a, b = {"a": 1, "b": 2}
```
The same process for assigning a value to a target expression is used
Expand Down

0 comments on commit 698e61c

Please sign in to comment.