Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor doc updates

  • Loading branch information...
commit f4bd38df5529c427c371a0a24fb3d8b3faa081a9 1 parent e94ec64
@jeppenejsum jeppenejsum authored
View
5 core/common/src/main/scala/net/liftweb/common/Box.scala
@@ -79,9 +79,8 @@ sealed trait BoxTrait {
}
/**
- * Create a Box from the specified Option.
- * @return a Box created from a Box. Full(x) if the Box is Full(x) and
- * not null
+ * Create a Box from the specified Box, checking for null.
+ * @return Full(x) if in is Full(x) and x is not null
* Empty otherwise
*/
def apply[T](in: Box[T]) = in match {
View
4 core/util/src/main/scala/net/liftweb/util/BasicTypesHelpers.scala
@@ -231,12 +231,12 @@ object AsInt {
}
/**
- * Safely convert the specified String to an Int.
+ * Safely convert the specified String to a Double.
*/
def asDouble(in: String): Box[Double] = tryo{in.trim.toDouble}
/**
-* A helpful Int extractor
+* A helpful Double extractor
*/
object AsDouble {
def unapply(in: String): Option[Double] = asDouble(in)
Please sign in to comment.
Something went wrong with that request. Please try again.