summaryrefslogtreecommitdiff
path: root/05-types.md
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2013-02-21 03:54:08 +0100
committerIain McGinniss <iainmcgin@gmail.com>2013-02-21 10:08:05 +0000
commit50ce3228b80475d1a0d748ec40ef532afb96df8f (patch)
tree94f28c3aee44315bca931ac12ebdadfa6ba922ef /05-types.md
parent2311e3498bea8d149cc38a6d3585de245134add9 (diff)
downloadscala-50ce3228b80475d1a0d748ec40ef532afb96df8f.tar.gz
scala-50ce3228b80475d1a0d748ec40ef532afb96df8f.tar.bz2
scala-50ce3228b80475d1a0d748ec40ef532afb96df8f.zip
Miscellaneous cleanups:
- Value of Unit is (), not {} - Fix desugared pattern matching code - Mention object-protected values - Use uppercase type variables for Tuple/Function code - Replace Application with App
Diffstat (limited to '05-types.md')
-rw-r--r--05-types.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/05-types.md b/05-types.md
index 3f9ca809f5..1d6fe8579f 100644
--- a/05-types.md
+++ b/05-types.md
@@ -232,10 +232,10 @@ implement other traits).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.scala}
case class Tuple$n$[+T1, … , +$T_n$](_1: T1, … , _n: $T_n$)
-extends Product_n[T1, … , $T_n$] {}
+extends Product_n[T1, … , $T_n$]
trait Product_n[+T1, … , +$T_n$] {
- override def arity = $n$
+ override def productArity = $n$
def _1: T1
def _n: $T_n$