Skip to content

Commit b93b211

Browse files
committed
Merge pull request mgechev#8 from FuzzySockets/module-grammar
Fix grammatical error in first paragraph of Module Pattern
2 parents 2009434 + f132f9a commit b93b211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ The `ChildCtrl` is responsible for handling actions such as clicking the button
953953
954954
This is actually not a design pattern from Gang of Four, neither one from P of EAA. This is a traditional JavaScript pattern, which main goal is to provide encapsulation and privacy.
955955
956-
Using the module pattern you can achieve privacy based on the JavaScript's functional lexical scope. Each module may has zero or more private members, which are hidden in the local scope of a function. This function returns an object, which exports the public API of the given module:
956+
Using the module pattern you can achieve privacy based on the JavaScript's functional lexical scope. Each module may have zero or more private members, which are hidden in the local scope of a function. This function returns an object, which exports the public API of the given module:
957957
958958
```javascript
959959
var Page = (function () {

0 commit comments

Comments
 (0)