all: fix typos
Fix some typos found during the Google import of x/tools. Change-Id: I8ea38d3e1bd09bedbc98ed8c8146e88e84aa051f Reviewed-on: https://go-review.googlesource.com/c/tools/+/674975 Auto-Submit: Robert Findley <rfindley@google.com> Reviewed-by: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
2a09582fa4
commit
ec8fb49c6b
2 changed files with 2 additions and 2 deletions
|
|
@ -744,7 +744,7 @@ func (s *Server) RemoveResources(uris ...string)
|
|||
func (s *Server) RemoveResourceTemplates(uriTemplates ...string)
|
||||
```
|
||||
|
||||
The `ReadResource` method finds a resource or resource template matching the argument URI and calls its assocated handler.
|
||||
The `ReadResource` method finds a resource or resource template matching the argument URI and calls its associated handler.
|
||||
|
||||
To read files from the local filesystem, we recommend using `FileResourceHandler` to construct a handler:
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ func sessionMethod[S ClientSession | ServerSession, P, R any](f func(*S, context
|
|||
const (
|
||||
// The error code to return when a resource isn't found.
|
||||
// See https://modelcontextprotocol.io/specification/2025-03-26/server/resources#error-handling
|
||||
// However, the code they chose in in the wrong space
|
||||
// However, the code they chose is in the wrong space
|
||||
// (see https://github.com/modelcontextprotocol/modelcontextprotocol/issues/509).
|
||||
// so we pick a different one, arbirarily for now (until they fix it).
|
||||
// The immediate problem is that jsonprc2 defines -32002 as "server closing".
|
||||
|
|
|
|||
Loading…
Reference in a new issue