Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_content/doc: ensure database example code compiles
The CreateOrder example function fails to compile for two reasons: A helper function with wrong number of return values (want 2, got 1). A short variable declaration (:=) does not declare new variables. This change resolves the compiler error, allowing the code to compile. Fixes golang/go#50508 Change-Id: Ife07ae1490969ae67525b9171ab4fcd424409c1c Reviewed-on: https://go-review.googlesource.com/c/website/+/376974 Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information