Skip to content

Commit

Permalink
Fixing more typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryukov committed Oct 7, 2014
1 parent cd04eb4 commit 658696f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ func (m *DbMap) Begin() (*Transaction, error) {
// function should be TableFor(i interface{}) (*TableMap, error)
// FIXME: rewrite this in terms of sqlx's reflect helpers

// TableFor returns any matching tables for the interface i or nil if not found
// If i is a slice, then the table is given for the base slice type
// TableFor returns any matching tables for the interface i or nil if not found.
// If i is a slice, then the table is given for the base slice type.
func (m *DbMap) TableFor(i interface{}) *TableMap {
var t reflect.Type
v := reflect.ValueOf(i)
Expand All @@ -403,7 +403,7 @@ start:

// FIXME: returning a nil pointer is not go-like; return (*TableMap, err) instead.

// TableForType returns any matching tables for the type t or nil if not found
// TableForType returns any matching tables for the type t or nil if not found.
func (m *DbMap) TableForType(t reflect.Type) *TableMap {
for _, table := range m.tables {
if table.gotype == t {
Expand All @@ -413,7 +413,7 @@ func (m *DbMap) TableForType(t reflect.Type) *TableMap {
return nil
}

// TruncateTables truncates all tables in the DbMap
// TruncateTables truncates all tables in the DbMap.
func (m *DbMap) TruncateTables() error {
return m.truncateTables(false)
}
Expand Down

0 comments on commit 658696f

Please sign in to comment.