Merge pull request #6110 from rgl/rgl-new-container-doc-typo

Fix typo in the NewContainer function documentation
This commit is contained in:
Phil Estes 2021-10-11 09:10:35 -07:00 committed by GitHub
commit 2e3c8d5e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {