mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
veb: fix app.text()
-> ctx.text()
in README.md
This commit is contained in:
parent
55b1236421
commit
b7b1c2e2e3
@ -233,7 +233,7 @@ by adding a host to the "hosts" file of your device.
|
||||
```v ignore
|
||||
@['/'; host: 'example.com']
|
||||
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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user