From 3859d9beb660ae5964ba094bb92093455aaa7dcd Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Sun, 3 Dec 2023 15:33:27 -0500 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 51cf392..3fea910 100644 --- a/README.md +++ b/README.md @@ -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])) } ```