ethclient: fix syntax error in comments

This commit is contained in:
Tinu280 2025-11-13 23:27:59 +07:00
parent 0ff4d9f456
commit 1a0f7f52db

View file

@ -45,7 +45,11 @@ func Dial(rawurl string) (*Client, error) {
// DialContext creates a new RPC client using the provided context
// and connects it to the specified URL endpoint.
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.