document the type name as optional in the server function docs (#1748)
This commit is contained in:
1 parent
422df68fea
commit
c56d3662e9
1 file changed
+1
-1
@@ -19,7 +19,7 @@ use syn::{
|
|||||||
/// are enabled), it will instead make a network request to the server.
|
/// are enabled), it will instead make a network request to the server.
|
||||||
///
|
///
|
||||||
/// You can specify one, two, or three arguments to the server function:
|
/// 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`).
|
/// (e.g., `MyServerFn`).
|
||||||
/// 2. *Optional*: A URL prefix at which the function will be mounted when it’s registered
|
/// 2. *Optional*: A URL prefix at which the function will be mounted when it’s registered
|
||||||
/// (e.g., `"/api"`). Defaults to `"/"`.
|
/// (e.g., `"/api"`). Defaults to `"/"`.
|
||||||
|
|||||||
Reference in new issue
Block a user