@@ -14,8 +14,7 @@ statements, let statements, and export statements.
1414
1515### Import Statements
1616
17- A composition may explicitly import an item in the resulting composition;
18- this is done with the ` import ` statement.
17+ A composition may explicitly import an item with the ` import ` statement.
1918
2019Assume a ` greeter ` interface definition published to a registry:
2120
@@ -44,7 +43,7 @@ The `as` keyword can be used to rename the imported item:
4443import greeter as my-greeter: example:greeter/greeter;
4544```
4645
47- Here the name of the import becomes ` my-greeter ` ; the name may be any valid
46+ Here the name of the import becomes ` my-greeter ` ; the name may be any valid
4847import name in the component model.
4948
5049The local name ` greeter ` can then be used to refer to the imported item from
@@ -282,7 +281,7 @@ The above behavior differs from JavaScript's spread argument syntax, which is
282281the inspiration for this syntax, because component instantiation arguments are
283282_ named_ and not _ positional_ .
284283
285- Additionally, it is an evaluation error if a spread argument has no matching
284+ Additionally, it is an evaluation error if a spread argument has no matching
286285exports.
287286
288287#### Access Expressions
@@ -297,7 +296,7 @@ let i = new a:b { ... };
297296let s = i.outgoing-stream;
298297``````
299298
300- Taking the above example into consideration, access expressions use the
299+ Taking the above example into consideration, access expressions use the
301300following rules to determine the name of the export:
302301
303302* If component `a:b` has exactly one export with `outgoing-stream` as the final
@@ -347,7 +346,7 @@ In the above example, component `a:b` is instantiated and the local name
347346in this example to be a function of type ` func() ` .
348347
349348The ` export ` statement is then used to export the ` my-run ` function from the
350- composition using the export name ` run ` as that is the name that was accessed
349+ composition using the export name ` run ` as that is the name that was accessed
351350from the instance.
352351
353352The ` as ` keyword can be used to rename the export:
@@ -357,7 +356,7 @@ let my-run = new a:b { ... }.run;
357356export my-run as "my-run";
358357```
359358
360- Like spread arguments in ` new ` expressions, exports of an instance may be
359+ Like spread arguments in ` new ` expressions, exports of an instance may be
361360_ spread_ as exports of the composition:
362361
363362``` wac
@@ -396,7 +395,7 @@ export run;
396395export my-instance...;
397396```
398397
399- Then the ` run ` function exported by the composition will be from the instance
398+ Then the ` run ` function exported by the composition will be from the instance
400399named ` b:c ` and not the instance named ` a:b ` .
401400
402401### WAC Grammar
0 commit comments