docs: fix off-by-one hl_lines in apps.md (#3196)

This commit is contained in:
Max 2026-07-28 00:04:57 +01:00 • committed by GitHub
commit b61ce388dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ then come back.
## A clock with a face
```python title="server.py" hl_lines="18 21 29 31"
```python title="server.py" hl_lines="19 22 30 32"
--8<-- "docs_src/apps/tutorial001.py"
```
@ -51,7 +51,7 @@ The model reads `content`; the iframe is for humans. A UI-capable host still fee
the text result to the model, and a text-only client gets *only* that. So the
canonical pattern is one tool, two answers. Look at `get_time` again:
```python title="server.py" hl_lines="22-26"
```python title="server.py" hl_lines="23-27"
--8<-- "docs_src/apps/tutorial001.py"
```