From 3cbcdbdac6429059f14b127e3ef2cd5434ea4187 Mon Sep 17 00:00:00 2001 From: CleverLili <80835303+CleverLili@users.noreply.github.com> Date: Sat, 20 Mar 2021 09:16:37 +0000 Subject: [PATCH 1/2] fix: removed unnecessary closing bracket in code --- content/en/guides/directory-structure/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/guides/directory-structure/modules.md b/content/en/guides/directory-structure/modules.md index b336f7a9a8..89321401e5 100644 --- a/content/en/guides/directory-structure/modules.md +++ b/content/en/guides/directory-structure/modules.md @@ -257,7 +257,7 @@ nuxt.hook('close', async nuxt => { - **Listen**: Nuxt internal server starts listening. (Using nuxt start or nuxt dev) ```js -nuxt.hook('listen', async (server, {host, port})) => { +nuxt.hook('listen', async (server, {host, port}) => { // Your custom code here }) ``` From 5059839f953068ae028e525cf79fc00a88d43ac8 Mon Sep 17 00:00:00 2001 From: CleverLili <80835303+CleverLili@users.noreply.github.com> Date: Sat, 20 Mar 2021 11:57:01 +0000 Subject: [PATCH 2/2] Update content/en/guides/directory-structure/modules.md Co-authored-by: Daniel Roe --- content/en/guides/directory-structure/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/guides/directory-structure/modules.md b/content/en/guides/directory-structure/modules.md index 89321401e5..e156af17e2 100644 --- a/content/en/guides/directory-structure/modules.md +++ b/content/en/guides/directory-structure/modules.md @@ -257,7 +257,7 @@ nuxt.hook('close', async nuxt => { - **Listen**: Nuxt internal server starts listening. (Using nuxt start or nuxt dev) ```js -nuxt.hook('listen', async (server, {host, port}) => { +nuxt.hook('listen', async (server, { host, port }) => { // Your custom code here }) ```