Skip to content

Commit a8c9b5e

Browse files
committed
fix: correct doctest example in elicit_safe macro documentation
- Remove invalid async/await usage in doctest example - Comment out the actual usage line to show intent without compilation errors - Maintain clear documentation of the macro's purpose and usage
1 parent edc5bed commit a8c9b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rmcp/src/service/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ pub trait ElicitationSafe: schemars::JsonSchema {}
481481
///
482482
/// elicit_safe!(UserProfile);
483483
///
484-
/// // Now safe to use:
485-
/// let profile: UserProfile = server.elicit("Enter profile").await?;
484+
/// // Now safe to use in async context:
485+
/// // let profile: UserProfile = server.elicit("Enter profile").await?;
486486
/// ```
487487
#[cfg(feature = "elicitation")]
488488
#[macro_export]

0 commit comments

Comments
 (0)