Skip to content

Commit 0d44292

Browse files
committed
bug #8027 Fix some typos (jdreesen)
This PR was squashed before being merged into the 3.3 branch (closes #8027). Discussion ---------- Fix some typos Commits ------- 7c4c368 Add missing argument to code example 2a0a414 Fix some typos
2 parents 8761b9a + 7c4c368 commit 0d44292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/encore/simple-example.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ In Symfony, use the ``asset()`` helper:
9999
Requiring JavaScript Modules
100100
----------------------------
101101

102-
Webpack is a module bundler... which means that you can ``require`` other
103-
JavaScript files. First, create a file that exports a function:
102+
Webpack is a module bundler... which means that you can ``require`` other JavaScript
103+
files. First, create a file that exports a function:
104104

105105
.. code-block:: javascript
106106
@@ -128,8 +128,8 @@ Great! Use ``require()`` to import ``jquery`` and ``greet.js``:
128128
// ./ (or ../) means to look for a local file
129129
var greet = require('./greet');
130130
131-
$(document).ready(function()) {
132-
$('h1').html(greet());
131+
$(document).ready(function() {
132+
$('h1').html(greet('john'));
133133
});
134134
135135
That's it! When you build your assets, jQuery and ``greet.js`` will automatically

0 commit comments

Comments
 (0)