docs(spanner): correct struct field tag syntax (#4709)
* `spanner:-` is not valid syntax for a struct field tag. The correct syntax is `spanner:"-"`.
* `spanner:name` has the same problem; it should be `spanner:"name"`.
Co-authored-by: Hengfeng Li <hengfeng@google.com>
diff --git a/spanner/mutation.go b/spanner/mutation.go
index a0d1466..7ee0ca3 100644
--- a/spanner/mutation.go
+++ b/spanner/mutation.go
@@ -216,8 +216,8 @@
// codes.AlreadyExists.
//
// The in argument must be a struct or a pointer to a struct. Its exported
-// fields specify the column names and values. Use a field tag like "spanner:name"
-// to provide an alternative column name, or use "spanner:-" to ignore the field.
+// fields specify the column names and values. Use a field tag like `spanner:"name"`
+// to provide an alternative column name, or use `spanner:"-"` to ignore the field.
func InsertStruct(table string, in interface{}) (*Mutation, error) {
cols, vals, err := structToMutationParams(in)
if err != nil {
@@ -285,7 +285,7 @@
//
// The in argument must be a struct or a pointer to a struct. Its exported
// fields specify the column names and values. Use a field tag like
-// "spanner:name" to provide an alternative column name, or use "spanner:-" to
+// `spanner:"name"` to provide an alternative column name, or use `spanner:"-"` to
// ignore the field.
//
// For a similar example, See UpdateStruct.
@@ -326,8 +326,8 @@
// written become NULL. The row is specified by a Go struct.
//
// The in argument must be a struct or a pointer to a struct. Its exported
-// fields specify the column names and values. Use a field tag like "spanner:name"
-// to provide an alternative column name, or use "spanner:-" to ignore the field.
+// fields specify the column names and values. Use a field tag like `spanner:"name"`
+// to provide an alternative column name, or use `spanner:"-"` to ignore the field.
//
// For a similar example, See UpdateStruct.
func ReplaceStruct(table string, in interface{}) (*Mutation, error) {