From ac51ec030eba717221a0c77eccc116bf39fce5a7 Mon Sep 17 00:00:00 2001 From: Niels Henrik Hagen Date: Wed, 24 Apr 2024 14:36:54 +0200 Subject: [PATCH] fix: Fix typo in examples --- README.md | 4 ++-- adapter/datadog/logger.go | 2 +- adapter/gorm/logger.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d16e1ac..4f8c0bf 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ import ( ) func main() { - l, err =: gormLogger.NewLogger(gormLogger.WithGlobalLogger()) + l, err := gormLogger.NewLogger(gormLogger.WithGlobalLogger()) if err != nil { panic(err) } @@ -132,7 +132,7 @@ import ( ) func main() { - l, err =: datadog.NewLogger(datadog.WithGlobalLogger()) + l, err := datadog.NewLogger(datadog.WithGlobalLogger()) if err != nil { panic(err) } diff --git a/adapter/datadog/logger.go b/adapter/datadog/logger.go index fc30759..29ed2e9 100644 --- a/adapter/datadog/logger.go +++ b/adapter/datadog/logger.go @@ -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) { diff --git a/adapter/gorm/logger.go b/adapter/gorm/logger.go index b2c568e..c9ea2eb 100644 --- a/adapter/gorm/logger.go +++ b/adapter/gorm/logger.go @@ -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) // }