Skip to content
Browse files

Renamed method Close() to Disconnect()

  • Loading branch information...
1 parent 1fa7c4b commit a7640acfc7d3fdab12368f5c5e5bb3e6eca70ee6 John Mac committed with Jun 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mongo/mongo.go
View
4 mongo/mongo.go
@@ -69,8 +69,8 @@ func ConnectByAddr(addr *net.TCPAddr) (*Connection, os.Error) {
return &Connection{addr, conn}, nil
}
-/* Closes the conection to the database. */
-func (self *Connection) Close() os.Error {
+/* Disconnects the conection from MongoDB. */
+func (self *Connection) Disconnect() os.Error {
if err := self.conn.Close(); err != nil {
return err
}

0 comments on commit a7640ac

Please sign in to comment.
Something went wrong with that request. Please try again.