Skip to content

Commit edc0407

Browse files
committed
api: Fix doc
1 parent f90e64e commit edc0407

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use std::sync::Arc;
88
/// Service handling code generated by macro
99
///
1010
/// A ServiceStatic can be:
11-
/// - #[service]: a class with multi method, if only one service, ignore `req.service`.
11+
/// - #[service]: a class with multi method, if only one service, ignore [ServerReq::service].
1212
/// - #[service_mux_struct]: a struct that contains several service, each field is a service,
13-
/// match `req.service` by `ServiceTrait::ServiceName` field
13+
/// match [ServerReq::service] by [ServiceStatic::SERVICE_NAME] field
1414
pub trait ServiceStatic<C: Codec>: Send + Sync + 'static + Sized {
1515
/// For server_mux_struct to match
1616
const SERVICE_NAME: &'static str;

0 commit comments

Comments
 (0)