Skip to content

Commit

Permalink
Fix code block containing "type parameter" and dangling sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangreenberg committed Sep 11, 2012
1 parent 6ff8726 commit a5f5adb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/_posts/2011-05-01-lesson.textile
Expand Up @@ -330,9 +330,7 @@ class BMW extends Car {


h2(#types). Types h2(#types). Types


Earlier, you saw that we defined a function that took an <code>Int</code> which is a type of Number. Functions can also be generic and work on any type. When that occurs, you'll see a <pre>type parameter</pre> introduced with the square bracket syntax: Earlier, you saw that we defined a function that took an <code>Int</code> which is a type of Number. Functions can also be generic and work on any type. When that occurs, you'll see a type parameter introduced with the square bracket syntax. Here's an example of a Cache of generic Keys and Values.

You can introduce as many type parameters. Here's an example of a Cache of generic Keys and Values.


<pre> <pre>
trait Cache[K, V] { trait Cache[K, V] {
Expand Down

0 comments on commit a5f5adb

Please sign in to comment.