Permalink
Browse files

Merge pull request #7 from greenrd/patch-1

* Fix typos in toString methods
  • Loading branch information...
2 parents 8e6302d + b62fbed commit 66f2e7601330984dc7fecf5cc90a5cbae68e59ad @jsuereth jsuereth committed Dec 20, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/scala/resource/Resource.scala
@@ -67,21 +67,21 @@ sealed trait MediumPriorityResourceImplicits extends LowPriorityResourceImplicit
//Add All JDBC related handlers.
implicit def connectionResource[A <: java.sql.Connection] = new Resource[A] {
override def close(r : A) = r.close()
- override def toString = "Resoruce[java.sql.Connection]"
+ override def toString = "Resource[java.sql.Connection]"
}
// This will work for Statements, PreparedStatements and CallableStatements.
implicit def statementResource[A <: java.sql.Statement] = new Resource[A] {
override def close(r : A) = r.close()
- override def toString = "Resoruce[java.sql.Statement]"
+ override def toString = "Resource[java.sql.Statement]"
}
// Also handles RowSet
implicit def resultSetResource[A <: java.sql.ResultSet] = new Resource[A] {
override def close(r : A) = r.close()
- override def toString = "Resoruce[java.sql.ResultSet]"
+ override def toString = "Resource[java.sql.ResultSet]"
}
implicit def pooledConnectionResource[A <: javax.sql.PooledConnection] = new Resource[A] {
override def close(r : A) = r.close()
- override def toString = "Resource[javax.sql.PooledConnection"
+ override def toString = "Resource[javax.sql.PooledConnection]"
}
}

0 comments on commit 66f2e76

Please sign in to comment.