Skip to content

Commit

Permalink
fix: Fix typo in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen committed Apr 24, 2024
1 parent a9aea4b commit ac51ec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import (
)

func main() {
l, err =: gormLogger.NewLogger(gormLogger.WithGlobalLogger())
l, err := gormLogger.NewLogger(gormLogger.WithGlobalLogger())
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -132,7 +132,7 @@ import (
)

func main() {
l, err =: datadog.NewLogger(datadog.WithGlobalLogger())
l, err := datadog.NewLogger(datadog.WithGlobalLogger())
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion adapter/datadog/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Logger struct {
// )
//
// func main() {
// l, err =: datadog.NewLogger(datadog.WithGlobalLogger())
// l, err := datadog.NewLogger(datadog.WithGlobalLogger())
// ddtrace.UseLogger(l)
// }
func NewLogger(opts ...LoggerOption) (*Logger, error) {
Expand Down
2 changes: 1 addition & 1 deletion adapter/gorm/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Logger struct {
// )
//
// func main() {
// l, err =: gormLogger.NewLogger(gormLogger.WithGlobalLogger())
// l, err := gormLogger.NewLogger(gormLogger.WithGlobalLogger())
// if err != nil {
// panic(err)
// }
Expand Down

0 comments on commit ac51ec0

Please sign in to comment.