A paren/brace-balance audit of fenced Go and Java code blocks under content/docs/iac/concepts/ turned up six examples with unbalanced delimiters, each confirmed to fail gofmt -e before the fix and parse cleanly after:
content/docs/iac/concepts/resources/options/aliases.md (URN alias example) — the Go snippet has a stray extra ) on its own line after the closing })). Paren count 3 open / 4 close.
content/docs/iac/concepts/resources/options/replaceonchanges.md — the Go example is missing its final closing ). Paren count 4 open / 3 close.
content/docs/iac/concepts/resources/options/version.md — the Java example has a stray space in .version("2.10.0" ) and is missing the closing ) before the statement terminator (.build(); should be .build());), inconsistent with the correct Java pattern used throughout aliases.md.
content/docs/iac/concepts/config.md — the Go pulumi.Run(func(ctx *pulumi.Context) error { ... }) example is missing the closing ) for the pulumi.Run( call.
content/docs/iac/concepts/stacks.md — the same pulumi.Run(...) pattern is missing its closing ).
content/docs/iac/concepts/secrets/_index.md — two separate Go examples have the same missing-closing-paren defect on pulumi.Run(...); one of the two is also missing its return nil statement, which the error-returning closure requires to compile.
All six are readers copy-pasting broken code that will not compile. A companion PR with the fixes is forthcoming.
A paren/brace-balance audit of fenced Go and Java code blocks under
content/docs/iac/concepts/turned up six examples with unbalanced delimiters, each confirmed to failgofmt -ebefore the fix and parse cleanly after:content/docs/iac/concepts/resources/options/aliases.md(URN alias example) — the Go snippet has a stray extra)on its own line after the closing})). Paren count 3 open / 4 close.content/docs/iac/concepts/resources/options/replaceonchanges.md— the Go example is missing its final closing). Paren count 4 open / 3 close.content/docs/iac/concepts/resources/options/version.md— the Java example has a stray space in.version("2.10.0" )and is missing the closing)before the statement terminator (.build();should be.build());), inconsistent with the correct Java pattern used throughoutaliases.md.content/docs/iac/concepts/config.md— the Gopulumi.Run(func(ctx *pulumi.Context) error { ... })example is missing the closing)for thepulumi.Run(call.content/docs/iac/concepts/stacks.md— the samepulumi.Run(...)pattern is missing its closing).content/docs/iac/concepts/secrets/_index.md— two separate Go examples have the same missing-closing-paren defect onpulumi.Run(...); one of the two is also missing itsreturn nilstatement, which theerror-returning closure requires to compile.All six are readers copy-pasting broken code that will not compile. A companion PR with the fixes is forthcoming.