mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
ethclient: fix syntax error in comments
This commit is contained in:
parent
0ff4d9f456
commit
1a0f7f52db
1 changed files with 5 additions and 1 deletions
|
|
@ -45,7 +45,11 @@ func Dial(rawurl string) (*Client, error) {
|
||||||
// DialContext creates a new RPC client using the provided context
|
// DialContext creates a new RPC client using the provided context
|
||||||
// and connects it to the specified URL endpoint.
|
// and connects it to the specified URL endpoint.
|
||||||
func DialContext(ctx context.Context, rawurl string) (*Client, error) {
|
func DialContext(ctx context.Context, rawurl string) (*Client, error) {
|
||||||
...
|
c, err := rpc.DialContext(ctx, rawurl)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return NewClient(c), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient creates a Client instance that wraps the provided RPC client.
|
// NewClient creates a Client instance that wraps the provided RPC client.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue