docs: whitespace fix

This commit is contained in:
Michał Matczuk
2017-08-23 16:07:55 +02:00
parent 0aeec73b2a
commit 4025a4d426
4 changed files with 9 additions and 9 deletions

View File

@@ -58,9 +58,9 @@ func isScannable(t reflect.Type) bool {
}
// fieldsByName fills a values interface with fields from the passed value based
// on the traversals in int. If ptrs is true, return addresses instead of values.
// on the traversals in int. If ptrs is true, return addresses instead of values.
// We write this instead of using FieldsByName to save allocations and map lookups
// when iterating over many rows. Empty traversals will get an interface pointer.
// when iterating over many rows. Empty traversals will get an interface pointer.
// Because of the necessity of requesting ptrs or values, it's considered a bit too
// specialized for inclusion in reflectx itself.
func fieldsByTraversal(v reflect.Value, traversals [][]int, values []interface{}, ptrs bool) error {