Skip to content

Commit a0de04e

Browse files
authored
docs(toolkit-lib): await cdk.fromAssemblyBuilder in readme (#258)
In subsequent examples we type `cx` as `ICloudAssemblySource`, so it makes more sense for our examples to show `cx` as an `ICloudAssemblySource` and not `Promise<ICloudAssemblySource>`. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 4408fb9 commit a0de04e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/toolkit-lib/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import * as core from 'aws-cdk-lib/core';
6161

6262
declare const cdk: Toolkit;
6363

64-
const cx = cdk.fromAssemblyBuilder(async () => {
64+
const cx = await cdk.fromAssemblyBuilder(async () => {
6565
const app = new core.App();
6666

6767
// Define your stacks here
@@ -321,7 +321,7 @@ Alternatively a inline `AssemblyBuilder` function can be used to build a CDK app
321321
```ts
322322
declare const cdk: Toolkit;
323323

324-
const cx = cdk.fromAssemblyBuilder(async () => {
324+
const cx = await cdk.fromAssemblyBuilder(async () => {
325325
const app = new core.App();
326326

327327
// Define your stacks here

0 commit comments

Comments
 (0)