diff --git a/src/doc_examples/server_function.rs b/src/doc_examples/server_function.rs index a1403ed8a..df9665c93 100644 --- a/src/doc_examples/server_function.rs +++ b/src/doc_examples/server_function.rs @@ -36,7 +36,7 @@ fn App(cx: Scope) -> Element { } #[server] -async fn double_server(number: usize) -> Result { +async fn double_server(number: i32) -> Result { // Perform some expensive computation or access a database on the server tokio::time::sleep(std::time::Duration::from_secs(1)).await; let result = number * 2;