fix some comments

This commit is contained in:
iamqizhao
2015-06-04 15:47:02 -07:00
parent ec20a7b857
commit e2677ad0f3

View File

@ -76,8 +76,8 @@ func WithCodec(c Codec) DialOption {
}
// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying
// connection is up. Without this, Dial returns immediately and connects the server in
// background.
// connection is up. Without this, Dial returns immediately and connecting the server
// happens in background.
func WithBlock() DialOption {
return func(o *dialOptions) {
o.block = true
@ -122,7 +122,7 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
return nil, ErrUnspecTarget
}
cc := &ClientConn{
target: target,
target: target,
shutdownChan: make(chan struct{}),
}
for _, opt := range opts {