Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d44292

Browse filesBrowse 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
Copy full SHA for 0d44292

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎frontend/encore/simple-example.rst

Copy file name to clipboardExpand all lines: frontend/encore/simple-example.rst
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.