From a2fced5b2c137a447f918f2d9b23a7b3b719150d Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 28 Feb 2007 15:29:51 +0000 Subject: updated example in scaladoc comment --- src/library/scala/throws.scala | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/library') diff --git a/src/library/scala/throws.scala b/src/library/scala/throws.scala index d8c6348920..cc6b59ed6f 100644 --- a/src/library/scala/throws.scala +++ b/src/library/scala/throws.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** */ @@ -11,18 +11,16 @@ package scala -/** - * Annotation for specifying the exceptions thrown by a method. - *

- * Example: - *

- *
- * class Reader(fname: String) {
- *   private val in =
- *     new BufferedReader(new FileReader(fname))
- *   [throws(classOf[IOException])]
- *   def read() = in.read()
- * }
+/**

+ * Annotation for specifying the exceptions thrown by a method. + * For example: + *

+ *    class Reader(fname: String) {
+ *      private val in =
+ *        new BufferedReader(new FileReader(fname))
+ *      @throws(classOf[IOException])
+ *      def read() = in.read()
+ *    }
* * @author Nikolay Mihaylov * @version 1.0, 19/05/2006 -- cgit v1.2.3