summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/RichChar.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-03-01 14:20:44 +0000
committermichelou <michelou@epfl.ch>2007-03-01 14:20:44 +0000
commite7c9deb053c7b4d27590b2fc70467f3cae4fbe3c (patch)
treef705bf61618e3182d3609b6d008aecbbef4cf876 /src/library/scala/runtime/RichChar.scala
parentf341b97e0bd92dda670b602f3004bb19e6c785e2 (diff)
downloadscala-e7c9deb053c7b4d27590b2fc70467f3cae4fbe3c.tar.gz
scala-e7c9deb053c7b4d27590b2fc70467f3cae4fbe3c.tar.bz2
scala-e7c9deb053c7b4d27590b2fc70467f3cae4fbe3c.zip
added scaladoc comment
Diffstat (limited to 'src/library/scala/runtime/RichChar.scala')
-rw-r--r--src/library/scala/runtime/RichChar.scala18
1 files changed, 17 insertions, 1 deletions
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
+/** <p>
+ * For example, in the following code
+ * </p>
+ * <pre>
+ * <b>object</b> test <b>extends</b> Application {
+ * Console.println(<chr>'\40'</chr>.isWhitespace)
+ * Console.println('\011'.isWhitespace)
+ * Console.println('1'.asDigit == 1)
+ * Console.println('A'.asDigit == 10)
+ * }</pre>
+ * <p>
+ * the implicit conversions are performed using the predefined view
+ * <a href="../Predef$object.html#charWrapper(scala.Char)"
+ * target="contentFrame"><code>Predef.charWrapper</code></a>.
+ * </p>
+ */
final class RichChar(x: Char) extends Proxy with Ordered[Char] {
// Proxy.self