Skip to content

Commit 34d37a3

Browse files
committed
Keep the docs watch-loop snippet ASCII
The docs-example checker pipes snippets to ruff in the platform encoding; an em-dash in a code comment arrives as invalid UTF-8 on Windows runners.
1 parent a1dfbc1 commit 34d37a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/advanced/subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def watch(client: Client, uri: str) -> None:
101101
async for _event in sub:
102102
await client.read_resource(uri)
103103
except SubscriptionLost:
104-
continue # transport dropped re-listen
104+
continue # transport dropped - re-listen
105105
else:
106106
break # the server ended it deliberately
107107
```

0 commit comments

Comments
 (0)