mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-27 13:44:55 +01:00
Update README.md
This commit is contained in:
parent
3ac0d5ac49
commit
3859d9beb6
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ use axum_htmx::HxResponseTrigger;
|
|||
async fn index() -> (&'static str, HxResponseTrigger) {
|
||||
(
|
||||
"Hello, world!",
|
||||
HxResponseTrigger::from(["my-event", "second-event"]),
|
||||
HxResponseTrigger::normal(["my-event", "second-event"]),
|
||||
)
|
||||
}
|
||||
```
|
||||
|
@ -161,7 +161,7 @@ async fn index() -> (&'static str, HxResponseTrigger) {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
("Hello, world!", HxResponseTrigger(vec![event]))
|
||||
("Hello, world!", HxResponseTrigger::normal([event]))
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue