From 71c1716ae4f16a05825695a33d480ac194c5ae09 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 26 Mar 2014 21:40:02 -0700 Subject: Add language to code blocks. Shorter Example title. --- 13-user-defined-annotations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '13-user-defined-annotations.md') 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 -- cgit v1.2.3