fix some comments

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

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