Skip to content

Commit

Permalink
Docs: 102: use new dagger.#Input in sample code
Browse files Browse the repository at this point in the history
Signed-off-by: Solomon Hykes <solomon@dagger.io>
  • Loading branch information
shykes committed Jun 21, 2021
1 parent e8b8c47 commit 656b010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/learn/102-dev.md
Expand Up @@ -140,10 +140,10 @@ import (
)
// Source code of the sample application
src: dagger.#Artifact @dagger(input)
src: dagger.#Artifact & dagger.#Input
```

This defines a component at the key `src`, of type `dagger.#Artifact`, annotated as an user input.
This defines a component at the key `src`, and specifies that it is both an artifact and an input.

### Component 2: yarn package

Expand Down

0 comments on commit 656b010

Please sign in to comment.