From 369d4e18ac58c8c4911260a36444ac44d68275d0 Mon Sep 17 00:00:00 2001 From: dot-sky <108539845+dot-sky@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:18:10 -0400 Subject: [PATCH] Fix invalid link fragment by adding id to header The header contains a dash '-' that causes the automatically generated fragment to don't match the link to the header: generated fragment link: '#the-module-pattern---iifes' correct link: '#the-module-pattern-iifes' By using the correct link as an id in the header both links will match --- .../factory_functions_and_module_pattern.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/organizing_your_javascript_code/factory_functions_and_module_pattern.md b/javascript/organizing_your_javascript_code/factory_functions_and_module_pattern.md index e1477ccf13c..3561bd40793 100644 --- a/javascript/organizing_your_javascript_code/factory_functions_and_module_pattern.md +++ b/javascript/organizing_your_javascript_code/factory_functions_and_module_pattern.md @@ -224,7 +224,7 @@ function createPlayer (name, level) { } ``` -### The module pattern - IIFEs +### The module pattern - IIFEs {#the-module-pattern-iifes}