Skip to content

Commit

Permalink
Minor doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppenejsum committed Jan 19, 2012
1 parent e94ec64 commit f4bd38d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions core/common/src/main/scala/net/liftweb/common/Box.scala
Expand Up @@ -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 {
Expand Down
Expand Up @@ -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)
Expand Down

0 comments on commit f4bd38d

Please sign in to comment.