Skip to content

Commit 11aae5a

Browse files
docs(syntax): Allign docs and clean redaction.
1 parent 75b9331 commit 11aae5a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/pages/language/syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "Operators, literals, and language surface."
77

88
```python
99
# Single-line comment
10-
x = 1 # Trailing comment
10+
x = 1 # Trailing comment
1111

1212
"""
1313
Triple-quoted strings used as
@@ -57,7 +57,7 @@ Assignment as expression. Useful in conditions and comprehensions.
5757
```python
5858
data = [1, 2, 3]
5959
if (n := len(data)) > 0:
60-
print(n)
60+
print(n)
6161
```
6262

6363
```text Output
@@ -82,7 +82,7 @@ print(1_000_000)
8282
1000000
8383
```
8484

85-
Underscores are validated, `1_`, `1__2`, `0x_1`, `1e_5` -> `SyntaxError`. Must sit between two digits.
85+
Underscores are validated: `1_`, `1__2`, `0x_1`, `1e_5` -> `SyntaxError`. Must sit between two digits.
8686

8787
```python
8888
# Floats: IEEE-754 doubles
@@ -340,7 +340,7 @@ print(max(x for x in [3, 1, 4, 1, 5]))
340340

341341
## Type annotations
342342

343-
Annotations parse on variables, parameters, and return positions but have no runtime effect, drained by the parser, never reach the VM. No `__annotations__`, no runtime check. Treat them as docs for humans and static analysers.
343+
Annotations parse on variables, parameters, and return positions but have no runtime effect: drained by the parser, they never reach the VM. No `__annotations__`, no runtime check. Treat them as docs for humans and static analysers.
344344

345345
```python
346346
counter: int = 0

0 commit comments

Comments
 (0)