Skip to content

Commit

Permalink
doc/md: fixed wrong sample code for gorm guide
Browse files Browse the repository at this point in the history
changed doc to match atlas-provider-gorm repo

doc/md: fixed formatting
  • Loading branch information
kylelmh committed Aug 16, 2023
1 parent 596ad26 commit b6ea418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/guides/orms/gorm.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ import (
)

func main() {
stmts, err := gormschema.New("mysql", &models.User{}, &models.Pet{}).Load()
stmts, err := gormschema.New("mysql").Load(&models.User{}, &models.Pet{})
if err != nil {
fmt.Fprintf(os.Stderr, "failed to load gorm schema: %v\n", err)
os.Exit(1)
Expand Down

0 comments on commit b6ea418

Please sign in to comment.