Skip to content

Commit

Permalink
docs(bigquery): use equality operator in Errors example (googleapis#5201
Browse files Browse the repository at this point in the history
)

Co-authored-by: shollyman <shollyman@shollyman.dev>
  • Loading branch information
mesge and shollyman committed Dec 13, 2021
1 parent 0dca864 commit 6eea107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigquery/doc.go
Expand Up @@ -307,7 +307,7 @@ These errors can be introspected for more information by using `xerrors.As` with
var e *googleapi.Error
if ok := xerrors.As(err, &e); ok {
if e.Code = 409 { ... }
if e.Code == 409 { ... }
}
In some cases, your client may received unstructured googleapi.Error error responses. In such cases, it is likely that
Expand Down

0 comments on commit 6eea107

Please sign in to comment.