Skip to content

Commit d120435

Browse files
committed
fix "AKA" on reverse-string
I'm not 100% sure of this, but I think this full `example:string-reverse/reverse.reverse-string` path is meant to break down as: * package: `example:string-reverse` * interface: `reverse` * function name: `reverse-string` If so, then the first part should be `example:string-reverse` and not `reverse-string`
1 parent 67aae6a commit d120435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component-model/src/language-support/javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ As a slightly deeper crash course on [WIT][wit], here's what the above code desc
281281
- This WIT file corresponds to version `0.1.0` of `example:string-reverse` package
282282
- We've defined an interface called `reverse` which contains *one* function called `reverse-string`
283283
- We specify that the `reverse` interface has existed *since* the `0.1.0` version
284-
- The `reverse-string` function (AKA. `example:reverse-string/reverse.reverse-string`) takes a string and returns a string
284+
- The `reverse-string` function (AKA. `example:string-reverse/reverse.reverse-string`) takes a string and returns a string
285285
- We've defined a `world` called `string-reverse` which exports the functionality provided by the `reverse` interface
286286

287287
> [!WARNING]

0 commit comments

Comments
 (0)