diff --git a/examples/components/string-reverse-upper/string-reverse-upper.mjs b/examples/components/string-reverse-upper/string-reverse-upper.mjs index d1ba4dc8b..529bbe9ca 100644 --- a/examples/components/string-reverse-upper/string-reverse-upper.mjs +++ b/examples/components/string-reverse-upper/string-reverse-upper.mjs @@ -10,19 +10,17 @@ */ import { reverseString } from 'example:string-reverse/reverse@0.1.0'; -/** - * Represents the implementation of the `reverse-and-uppercase` function in the `reversed-upper` interface - * - * This function makes use of `reverse-string` which is *imported* from another WebAssembly binary. - */ -function reverseAndUppercase(s) { - return reverseString(s).toLocaleUpperCase(); -} - /** * The Javascript export below represents the export of the `reversed-upper` interface, * which which contains `revup` as it's primary exported function. */ export const reversedUpper = { - reverseAndUppercase, + /** + * Represents the implementation of the `reverse-and-uppercase` function in the `reversed-upper` interface + * + * This function makes use of `reverse-string` which is *imported* from another WebAssembly binary. + */ + reverseAndUppercase() { + return reverseString(s).toLocaleUpperCase(); + }, };