diff --git a/docs/learn/102-dev.md b/docs/learn/102-dev.md index d0ed3d8d..42fc10f3 100644 --- a/docs/learn/102-dev.md +++ b/docs/learn/102-dev.md @@ -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