veb: fix app.text() -> ctx.text() in README.md

This commit is contained in:
whi 2025-07-11 14:38:23 +08:00 committed by GitHub
parent 55b1236421
commit b7b1c2e2e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,7 +233,7 @@ by adding a host to the "hosts" file of your device.
```v ignore ```v ignore
@['/'; host: 'example.com'] @['/'; host: 'example.com']
pub fn (app &App) hello_web(mut ctx Context) veb.Result { pub fn (app &App) hello_web(mut ctx Context) veb.Result {
return app.text('Hello World') return ctx.text('Hello WEB')
} }
@['/'; host: 'api.example.org'] @['/'; host: 'api.example.org']