From b8d15259e1488951a2674c19b96f0a48012f2d0c Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 3 Sep 2024 10:33:31 -0400 Subject: [PATCH 1/2] DOCSP-43239: Fix code scroll --- source/includes/quick-start/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/includes/quick-start/main.go b/source/includes/quick-start/main.go index 34112cb7..2a27cd13 100644 --- a/source/includes/quick-start/main.go +++ b/source/includes/quick-start/main.go @@ -19,10 +19,10 @@ func main() { } uri := os.Getenv("MONGODB_URI") + link := "www.mongodb.com/docs/drivers/go/current/usage-examples/#environment-variable" if uri == "" { log.Fatal("Set your 'MONGODB_URI' environment variable. " + - "See: " + - "www.mongodb.com/docs/drivers/go/current/usage-examples/#environment-variable") + "See: " + link) } client, err := mongo.Connect(options.Client(). ApplyURI(uri)) From 68a9cab70fb68360d8a0b2c2fdfe8bf7e40780df Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 3 Sep 2024 10:44:10 -0400 Subject: [PATCH 2/2] test --- source/includes/quick-start/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/includes/quick-start/main.go b/source/includes/quick-start/main.go index 2a27cd13..2b50d8f7 100644 --- a/source/includes/quick-start/main.go +++ b/source/includes/quick-start/main.go @@ -19,10 +19,11 @@ func main() { } uri := os.Getenv("MONGODB_URI") - link := "www.mongodb.com/docs/drivers/go/current/usage-examples/#environment-variable" + docs := "www.mongodb.com/docs/drivers/go/current/" if uri == "" { log.Fatal("Set your 'MONGODB_URI' environment variable. " + - "See: " + link) + "See: " + docs + + "usage-examples/#environment-variable") } client, err := mongo.Connect(options.Client(). ApplyURI(uri))