Skip to content

Commit 22134eb

Browse files
Pluto-Yplutoyzhang
and
plutoyzhang
authored
fix: comment error (#215)
Co-authored-by: plutoyzhang <plutoyzhang@tencent.com>
1 parent d0bbb22 commit 22134eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rmcp/src/service/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ impl Peer<RoleClient> {
300300
Ok(tools)
301301
}
302302

303-
/// A wrapper method for [`Peer<RoleClient>::list_resources`].
303+
/// A wrapper method for [`Peer<RoleClient>::list_prompts`].
304304
///
305-
/// This function will call [`Peer<RoleClient>::list_resources`] multiple times until all resources are listed.
305+
/// This function will call [`Peer<RoleClient>::list_prompts`] multiple times until all prompts are listed.
306306
pub async fn list_all_prompts(&self) -> Result<Vec<crate::model::Prompt>, ServiceError> {
307307
let mut prompts = Vec::new();
308308
let mut cursor = None;

0 commit comments

Comments
 (0)