summaryrefslogtreecommitdiff
path: root/13-user-defined-annotations.md
diff options
context:
space:
mode:
Diffstat (limited to '13-user-defined-annotations.md')
-rw-r--r--13-user-defined-annotations.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/13-user-defined-annotations.md b/13-user-defined-annotations.md
index 621b55928d..a9f3e0f1de 100644
--- a/13-user-defined-annotations.md
+++ b/13-user-defined-annotations.md
@@ -6,7 +6,7 @@ chapter: 11
# User-Defined Annotations
-```
+```ebnf
Annotation ::= ‘@’ SimpleType {ArgumentExprs}
ConstrAnnotation ::= ‘@’ SimpleType ArgumentExprs
```
@@ -26,7 +26,7 @@ does not matter.
Examples:
-```
+```scala
@deprecated("Use D", "1.0") class C { ... } // Class annotation
@transient @volatile var m: Int // Variable annotation
String @local // Type annotation