From 590943a89a1883208fa74cb9efabca8391280264 Mon Sep 17 00:00:00 2001 From: Tietew Date: Tue, 31 Dec 2024 00:29:54 +0900 Subject: [PATCH] chore: fix a minor typo in doc (#2580) * fix a minor typo in doc * docs --------- Co-authored-by: Momo Kornher --- API.md | 4 ++-- src/construct.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index 35fb2c0b..9a61070b 100644 --- a/API.md +++ b/API.md @@ -864,7 +864,7 @@ the construct. | root | IConstruct | Returns the root of the construct tree. | | scopes | IConstruct[] | All parent scopes of this construct. | | scope | IConstruct | Returns the scope in which this construct is defined. | -| defaultChild | IConstruct | Returns the child construct that has the id `Default` or `Resource"`. | +| defaultChild | IConstruct | Returns the child construct that has the id `Default` or `Resource`. | --- @@ -1021,7 +1021,7 @@ public readonly defaultChild: IConstruct; - *Type:* IConstruct -Returns the child construct that has the id `Default` or `Resource"`. +Returns the child construct that has the id `Default` or `Resource`. This is usually the construct that provides the bulk of the underlying functionality. Useful for modifications of the underlying construct that are not available at the higher levels. diff --git a/src/construct.ts b/src/construct.ts index e5abdadb..a3aea0b8 100644 --- a/src/construct.ts +++ b/src/construct.ts @@ -136,7 +136,7 @@ export class Node { } /** - * Returns the child construct that has the id `Default` or `Resource"`. + * Returns the child construct that has the id `Default` or `Resource`. * This is usually the construct that provides the bulk of the underlying functionality. * Useful for modifications of the underlying construct that are not available at the higher levels. *