From 99bbb16106736b5c0ea5052bf37767b0a7a9f063 Mon Sep 17 00:00:00 2001 From: Nora Reidy Date: Tue, 3 Sep 2024 11:31:20 -0400 Subject: [PATCH] DOCSP-43239: Fix code scroll (#380) * DOCSP-43239: Fix code scroll * test (cherry picked from commit 296a28e2bbb434d861dc6a4f3a64e04f865c5e44) --- 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 d78348a5..91fc88fd 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") + docs := "www.mongodb.com/docs/drivers/go/current/" if uri == "" { log.Fatal("Set your 'MONGODB_URI' environment variable. " + - "See: " + - "www.mongodb.com/docs/drivers/go/current/usage-examples/#environment-variable") + "See: " + docs + + "usage-examples/#environment-variable") } client, err := mongo.Connect(context.TODO(), options.Client(). ApplyURI(uri))