Explorar o código

document the type name as optional in the server function docs (#1748)

ealmloff hai 1 ano
pai
achega
c56d3662e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/server-macro/src/lib.rs

+ 1 - 1
packages/server-macro/src/lib.rs

@@ -19,7 +19,7 @@ use syn::{
 /// are enabled), it will instead make a network request to the server.
 ///
 /// You can specify one, two, or three arguments to the server function:
-/// 1. **Required**: A type name that will be used to identify and register the server function
+/// 1. *Optional*: A type name that will be used to identify and register the server function
 ///   (e.g., `MyServerFn`).
 /// 2. *Optional*: A URL prefix at which the function will be mounted when it’s registered
 ///   (e.g., `"/api"`). Defaults to `"/"`.