Update README.md

This commit is contained in:
Rob Wagner 2023-12-03 15:33:27 -05:00
parent 3ac0d5ac49
commit 3859d9beb6
No known key found for this signature in database
GPG key ID: 53CCB4497B15CF61

View file

@ -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]))
}
```