diff options
Diffstat (limited to 'spec/11-annotations.md')
-rw-r--r-- | spec/11-annotations.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/11-annotations.md b/spec/11-annotations.md index d66f24abf8..68faee53e6 100644 --- a/spec/11-annotations.md +++ b/spec/11-annotations.md @@ -56,7 +56,7 @@ Java platform, the following annotations have a standard meaning. This is equivalent to a the following field definition in Java: - ``` + ```java private final static SerialVersionUID = <longlit> ``` @@ -94,7 +94,7 @@ Java platform, the following annotations have a standard meaning. * `@deprecatedName(name: <symbollit>)`<br/> Marks a formal parameter name as deprecated. Invocations of this entity - using named parameter syntax refering to the deprecated parameter name cause a deprecation warning. + using named parameter syntax referring to the deprecated parameter name cause a deprecation warning. ### Scala Compiler Annotations @@ -103,7 +103,7 @@ Java platform, the following annotations have a standard meaning. matches which would otherwise be emitted. For instance, no warnings would be produced for the method definition below. - ``` + ```scala def f(x: Option[Int]) = (x: @unchecked) match { case Some(y) => y } @@ -117,7 +117,7 @@ Java platform, the following annotations have a standard meaning. value to appear in a path, even if its type is [volatile](03-types.html#volatile-types). For instance, the following member definitions are legal: - ``` + ```scala type A { type T } type B @uncheckedStable val x: A with B // volatile type @@ -140,7 +140,7 @@ Java platform, the following annotations have a standard meaning. For instance, the following code would generate specialized traits for `Unit`, `Int` and `Double` - ``` + ```scala trait Function0[@specialized(Unit, Int, Double) T] { def apply: T } |