internal/jsonrpc2,mcp: fix typos (#183)

- add links to doc strings
- use correct symbol and package names
This commit is contained in:
Koichi Shiraishi 2025-07-29 01:18:03 +09:00 • committed by GitHub
commit 619bc41581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,7 +125,7 @@ func (c *Connection) updateInFlight(f func(*inFlightState)) {
// that and avoided making any updates that would cause the state to be
// non-idle.)
if !s.idle() {
panic("jsonrpc2_v2: updateInFlight transitioned to non-idle when already done")
panic("jsonrpc2: updateInFlight transitioned to non-idle when already done")
}
return
default:
@ -718,7 +718,7 @@ func (c *Connection) processResult(from any, req *incomingRequest, result any, e
req.cancel()
c.updateInFlight(func(s *inFlightState) {
if s.incoming == 0 {
panic("jsonrpc2_v2: processResult called when incoming count is already zero")
panic("jsonrpc2: processResult called when incoming count is already zero")
}
s.incoming--
})