Skip to content

Commit 7610b0a

Browse files
committed
Merge pull request twitter#69 from HandsomeCam/master
minor readability fixes
2 parents ff1b162 + 4684047 commit 7610b0a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

web/basics2.textile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ This lesson covers:
1616

1717
h2(#apply). apply methods
1818

19-
apply methods give you a nice syntatic sugar for when a class or object has one main use.
19+
apply methods give you a nice syntactic sugar for when a class or object has one main use.
2020

2121
<pre>
22+
class Foo {}
23+
2224
object FooMaker {
2325
def apply() = new Foo
2426
}
27+
</pre>
28+
29+
or
30+
31+
<pre>
2532

2633
scala> class Bar {
2734
| def apply() = 0

0 commit comments

Comments
 (0)