mcp: fix comments (#221)

### change:
Fix typos in some comments.
This commit is contained in:
cryo 2025-08-02 04:20:55 +08:00 • committed by GitHub
commit 0cde9623d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ func defaultSendingMethodHandler[S Session](ctx context.Context, session S, meth
return res, nil
}
// Helper methods to avoid typed nil.
// Helper method to avoid typed nil.
func orZero[T any, P *U, U any](p P) T {
if p == nil {
var zero T