Fixed alias example in extending page (#2011) This fixes the example on how to add a language alias to a language definition.
diff --git a/extending.html b/extending.html
index dfc3f1a..ed0d2f1 100644
--- a/extending.html
+++ b/extending.html
@@ -177,7 +177,7 @@ ol.indent {
<p>To add the alias, we add this line at the end of <code>prism-foo-bar.js</code>:</p>
- <pre><code class="language-js">Prism.languages.foo = Prism.language['foo-bar'];</code></pre>
+ <pre><code class="language-js">Prism.languages.foo = Prism.languages['foo-bar'];</code></pre>
<p>Aliases also have to be registered in <code>components.json</code> by adding the <code>alias</code> property to the language entry. In this example, the updated entry will look like this:</p>