From e7c9deb053c7b4d27590b2fc70467f3cae4fbe3c Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 1 Mar 2007 14:20:44 +0000 Subject: added scaladoc comment --- src/library/scala/runtime/RichChar.scala | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/library/scala/runtime/RichChar.scala b/src/library/scala/runtime/RichChar.scala index 571bb75d5a..d4b66a305f 100644 --- a/src/library/scala/runtime/RichChar.scala +++ b/src/library/scala/runtime/RichChar.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2006-2007, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ @@ -15,6 +15,22 @@ package scala.runtime import java.lang.Character import Predef.NoSuchElementException +/**

+ * For example, in the following code + *

+ *
+ *    object test extends Application {
+ *      Console.println('\40'.isWhitespace)
+ *      Console.println('\011'.isWhitespace)
+ *      Console.println('1'.asDigit == 1)
+ *      Console.println('A'.asDigit == 10)
+ *    }
+ *

+ * the implicit conversions are performed using the predefined view + * Predef.charWrapper. + *

+ */ final class RichChar(x: Char) extends Proxy with Ordered[Char] { // Proxy.self -- cgit v1.2.3