Skip to content

Commit

Permalink
Fix typo in hot reload websocket doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed May 20, 2024
1 parent 2969e93 commit a529295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/rsx_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ fn WithInline(text: String) -> Element {
}

#[component]
fn Label<T: Clone + PartialEq + 'static>(text: T) -> Element
where
T: Display,
{
fn Label<T: Clone + PartialEq + Display + 'static>(text: T) -> Element {
rsx! {
p { "{text}" }
}
Expand Down
2 changes: 1 addition & 1 deletion packages/hot-reload/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub trait HotReloadRouterExt<S> {
/// listener,
/// axum::Router::new()
/// // Connect to hot reloading in debug mode
/// ..forward_cli_hot_reloading()
/// .forward_cli_hot_reloading()
/// .into_make_service(),
/// )
/// .await
Expand Down

0 comments on commit a529295

Please sign in to comment.