Skip to content

Commit

Permalink
Fix basics.md (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: kpoliwka <[email protected]>
  • Loading branch information
polkx and polkx authored Feb 7, 2024
1 parent 0baa22a commit 220a8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ combine them into a single output:
val port: Output[Int] = pod.port
val host: Output[String] = node.hostname
val hello: Output[(String, Int)] = host.zip(port)
val url: Output[String] = hello.map { case (a, b) => s"https://$hostname:$port/" }
val url: Output[String] = hello.map { case (hostname, portValue) => s"https://$hostname:$portValue/" }
```

If you have a map of outputs and need to use them together **as a map** you can use
Expand Down

0 comments on commit 220a8f4

Please sign in to comment.