8000 fix bad markdown bullets · sfaleron/scala.github.com@acb75a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit acb75a1

Browse files
committed
fix bad markdown bullets
1 parent d205b71 commit acb75a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tutorials/tour/extractor-objects.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The pattern `case Twice(n)` will cause an invocation of `Twice.unapply`, which i
2929
The `apply` method is not necessary for pattern matching. It is only used to mimick a constructor. `val x = Twice(21)` expands to `val x = Twice.apply(21)`.
3030

3131
The return type of an `unapply` should be chosen as follows:
32+
3233
* If it is just a test, return a `Boolean`. For instance `case even()`
3334
* If it returns a single sub-value of type T, return an `Option[T]`
3435
* If you want to return several sub-values `T1,...,Tn`, group them in an optional tuple `Option[(T1,...,Tn)]`.

tutorials/tour/tour-of-scala.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Furthermore, Scala's notion of pattern matching naturally extends to the [proces
2222

2323
## Scala is statically typed ##
2424
Scala is equipped with an expressive type system that enforces statically that abstractions are used in a safe and coherent manner. In particular, the type system supports:
25+
2526
* [generic classes](generic-classes.html)
2627
* [variance annotations](variances.html)
2728
* [upper](upper-type-bounds.html) and [lower](lower-type-bounds.html) type bounds,
@@ -36,6 +37,7 @@ A [local type inference mechanism](local-type-inference.html) takes care that th
3637
## Scala is extensible ##
3738

3839
In practice, the development of domain-specific applications often requires domain-specific language extensions. Scala provides a unique combination of language mechanisms that make it easy to smoothly add new language constructs in form of libraries:
40+
3941
* any method may be used as an [infix or postfix operator](operators.html)
4042
* [closures are constructed automatically depending on the expected type](automatic-closures.html) (target typing).
4143

0 commit comments

Comments
 (0)
0