Skip to content

Commit 45f700e

Browse files
authored
mcp/client: fix typo in changeAndNotify&ReadResource (#68)
This PR updates the comments for func changeAndNotify and ReadResource to correct typos and improve clarity.
1 parent 8a3f272 commit 45f700e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcp/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (c *Client) RemoveRoots(uris ...string) {
191191
func() bool { return c.roots.remove(uris...) })
192192
}
193193

194-
// changeAndNotifyClient is called when a feature is added or removed.
194+
// changeAndNotify is called when a feature is added or removed.
195195
// It calls change, which should do the work and report whether a change actually occurred.
196196
// If there was a change, it notifies a snapshot of the sessions.
197197
func (c *Client) changeAndNotify(notification string, params Params, change func() bool) {
@@ -347,7 +347,7 @@ func (cs *ClientSession) ListResourceTemplates(ctx context.Context, params *List
347347
return handleSend[*ListResourceTemplatesResult](ctx, cs, methodListResourceTemplates, orZero[Params](params))
348348
}
349349

350-
// ReadResource ask the server to read a resource and return its contents.
350+
// ReadResource asks the server to read a resource and return its contents.
351351
func (cs *ClientSession) ReadResource(ctx context.Context, params *ReadResourceParams) (*ReadResourceResult, error) {
352352
return handleSend[*ReadResourceResult](ctx, cs, methodReadResource, orZero[Params](params))
353353
}

0 commit comments

Comments
 (0)