mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #16571 from skatsuta/fix-typo-comment-evaluator
builder: fix typos in comments
This commit is contained in:
commit
02ae137b1d
1 changed files with 2 additions and 2 deletions
|
@ -308,14 +308,14 @@ func (b *builder) isBuildArgAllowed(arg string) bool {
|
||||||
//
|
//
|
||||||
// ONBUILD is a special case; in this case the parser will emit:
|
// ONBUILD is a special case; in this case the parser will emit:
|
||||||
// Child[Node, Child[Node, Node...]] where the first node is the literal
|
// Child[Node, Child[Node, Node...]] where the first node is the literal
|
||||||
// "onbuild" and the child entrypoint is the command of the ONBUILD statmeent,
|
// "onbuild" and the child entrypoint is the command of the ONBUILD statement,
|
||||||
// such as `RUN` in ONBUILD RUN foo. There is special case logic in here to
|
// such as `RUN` in ONBUILD RUN foo. There is special case logic in here to
|
||||||
// deal with that, at least until it becomes more of a general concern with new
|
// deal with that, at least until it becomes more of a general concern with new
|
||||||
// features.
|
// features.
|
||||||
func (b *builder) dispatch(ctx context.Context, stepN int, ast *parser.Node) error {
|
func (b *builder) dispatch(ctx context.Context, stepN int, ast *parser.Node) error {
|
||||||
cmd := ast.Value
|
cmd := ast.Value
|
||||||
|
|
||||||
// To ensure the user is give a decent error message if the platform
|
// To ensure the user is given a decent error message if the platform
|
||||||
// on which the daemon is running does not support a builder command.
|
// on which the daemon is running does not support a builder command.
|
||||||
if err := platformSupports(strings.ToLower(cmd)); err != nil {
|
if err := platformSupports(strings.ToLower(cmd)); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue