Fix typo in the NewContainer function documentation

Signed-off-by: Rui Lopes <rgl@ruilopes.com>
This commit is contained in:
Rui Lopes 2021-10-10 19:46:55 +01:00
parent 193bafc42c
commit 072a7074b4

View File

@ -265,8 +265,8 @@ func (c *Client) Containers(ctx context.Context, filters ...string) ([]Container
return out, nil return out, nil
} }
// NewContainer will create a new container in container with the provided id // NewContainer will create a new container with the provided id.
// the id must be unique within the namespace // The id must be unique within the namespace.
func (c *Client) NewContainer(ctx context.Context, id string, opts ...NewContainerOpts) (Container, error) { func (c *Client) NewContainer(ctx context.Context, id string, opts ...NewContainerOpts) (Container, error) {
ctx, done, err := c.WithLease(ctx) ctx, done, err := c.WithLease(ctx)
if err != nil { if err != nil {