Skip to content

Commit 454c234

Browse files
committed
database/sql: use complete sentences in new docs
Change-Id: Icb842a80cab2b07b9ace1e8e14c4a19c48a92c43 Reviewed-on: https://go-review.googlesource.com/34247 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Daniel Theophanes <[email protected]>
1 parent c586630 commit 454c234

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/database/sql/sql.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,26 @@ func Drivers() []string {
7272
return list
7373
}
7474

75-
// A NamedArg used as an argument to Query or Exec
76-
// binds to the corresponding named parameter in the SQL statement.
75+
// A NamedArg is a named argument. NamedArg values may be used as
76+
// arguments to Query or Exec and bind to the corresponding named
77+
// parameter in the SQL statement.
78+
//
79+
// For a more concise way to create NamedArg values, see
80+
// the Named function.
7781
type NamedArg struct {
7882
_Named_Fields_Required struct{}
7983

80-
// Name of the parameter placeholder. If empty the ordinal position in the
81-
// argument list will be used.
84+
// Name is the name of the parameter placeholder.
85+
//
86+
// If empty, the ordinal position in the argument list will be
87+
// used.
8288
//
8389
// Name must omit any symbol prefix.
8490
Name string
8591

86-
// Value of the parameter. It may be assigned the same value types as
87-
// the query arguments.
92+
// Value is the value of the parameter.
93+
// It may be assigned the same value types as the query
94+
// arguments.
8895
Value interface{}
8996
}
9097

0 commit comments

Comments
 (0)