diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-01 02:18:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-01 02:18:53 +0000 |
commit | 305f49ce8f7358636bf81a7aca29d8ab42d98ed4 (patch) | |
tree | 8926915191e1aef1057c6b211f120b329d61d005 /src/library/scala/Unit.scala | |
parent | 0444357cd5eae4efb401bb8a59c3794db2d1b2db (diff) | |
download | scala-305f49ce8f7358636bf81a7aca29d8ab42d98ed4.tar.gz scala-305f49ce8f7358636bf81a7aca29d8ab42d98ed4.tar.bz2 scala-305f49ce8f7358636bf81a7aca29d8ab42d98ed4.zip |
Working on the documentation of core classes.
withdraw some of the goodness I banked a while ago with the AnyVal
types. Started on what will culminate in the total elimination of
SourcelessComments. Cleaned up the docs on ancient classes like Product.
More to come. No review.
Diffstat (limited to 'src/library/scala/Unit.scala')
-rwxr-xr-x | src/library/scala/Unit.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/library/scala/Unit.scala b/src/library/scala/Unit.scala index 9e2d4dc616..e69f95bf89 100755 --- a/src/library/scala/Unit.scala +++ b/src/library/scala/Unit.scala @@ -10,14 +10,16 @@ package scala -import java.{ lang => jl } - import runtime.BoxedUnit +/** Unit is a member of the value classes, those whose instances are + * not represented as objects by the underlying host system. There is + * only one value of type Unit: `()`. + */ final class Unit extends AnyVal { } object Unit extends AnyValCompanion { override def toString = "object scala.Unit" def box(x: Unit): BoxedUnit = BoxedUnit.UNIT - def unbox(x: jl.Object): Unit = () + def unbox(x: java.lang.Object): Unit = () }
\ No newline at end of file |