From 656b01041dc263649e6709ba9210a8ff32f2ed3b Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Mon, 21 Jun 2021 13:13:18 +0000 Subject: [PATCH] Docs: 102: use new dagger.#Input in sample code Signed-off-by: Solomon Hykes --- docs/learn/102-dev.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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