From 861d8e7992c5ac7d7347def3c300c4e073d94d7d Mon Sep 17 00:00:00 2001 From: yuxiaobo96 <41496192+yuxiaobo96@users.noreply.github.com> Date: Tue, 1 Oct 2019 06:30:07 +0800 Subject: [PATCH] internal: fix typos in comments (#3046) --- clientconn.go | 4 ++-- grpclog/grpclog.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clientconn.go b/clientconn.go index 43ef2548..a15bb69c 100644 --- a/clientconn.go +++ b/clientconn.go @@ -1332,7 +1332,7 @@ func (ac *addrConn) tearDown(err error) { curTr := ac.transport ac.transport = nil // We have to set the state to Shutdown before anything else to prevent races - // between setting the state and logic that waits on context cancelation / etc. + // between setting the state and logic that waits on context cancellation / etc. ac.updateConnectivityState(connectivity.Shutdown) ac.cancel() ac.curAddr = resolver.Address{} @@ -1356,7 +1356,7 @@ func (ac *addrConn) tearDown(err error) { }, }) // TraceEvent needs to be called before RemoveEntry, as TraceEvent may add trace reference to - // the entity beng deleted, and thus prevent it from being deleted right away. + // the entity being deleted, and thus prevent it from being deleted right away. channelz.RemoveEntry(ac.channelzID) } ac.mu.Unlock() diff --git a/grpclog/grpclog.go b/grpclog/grpclog.go index 51bb9457..874ea6d9 100644 --- a/grpclog/grpclog.go +++ b/grpclog/grpclog.go @@ -89,7 +89,7 @@ func Fatal(args ...interface{}) { } // Fatalf logs to the FATAL log. Arguments are handled in the manner of fmt.Printf. -// It calles os.Exit() with exit code 1. +// It calls os.Exit() with exit code 1. func Fatalf(format string, args ...interface{}) { logger.Fatalf(format, args...) // Make sure fatal logs will exit.