Skip to content

Commit 5358690

Browse files
committed
Remove unneeded word
1 parent 2228b63 commit 5358690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/design_patterns/singleton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Many times you only want one, and only one, instance of a class. For example, yo
1212

1313
The publicly available class only contains the method to get the one true instance. The instance is kept within the closure of that public object and is always returned.
1414

15-
This is works because CoffeeScript allows you to define executable statements inside a class definition. However, because most CoffeeScript compiles into a [IIFE][] wrapper you do not have to place the private class inside the class definition if this style suits you. The later might be useful when developing modular code such as found in [CommonJS][] (Node.js) or [Require.js][] (See the discussion for an example).
15+
This works because CoffeeScript allows you to define executable statements inside a class definition. However, because most CoffeeScript compiles into a [IIFE][] wrapper you do not have to place the private class inside the class definition if this style suits you. The later might be useful when developing modular code such as found in [CommonJS][] (Node.js) or [Require.js][] (See the discussion for an example).
1616

1717
[IIFE]: http://benalman.com/news/2010/11/immediately-invoked-function-expression/
1818
[CommonJS]: http://www.commonjs.org/

0 commit comments

Comments
 (0)