refactor: minor issue and documentation

This commit is contained in:
yusing
2026-02-07 21:01:04 +08:00
parent 58305a496f
commit 65cfa90c95
4 changed files with 9 additions and 11 deletions

View File

@@ -377,7 +377,7 @@ Routes can access the entrypoint from request context:
```go
// Set entrypoint in context
entrypoint.SetCtx(r.Context(), ep)
entrypoint.SetCtx(task, ep)
// Get entrypoint from context
if ep := entrypoint.FromCtx(r.Context()); ep != nil {