Skip to content

Commit

Permalink
DOCSP-43239: Fix code scroll (#380)
Browse files Browse the repository at this point in the history
* DOCSP-43239: Fix code scroll

* test

(cherry picked from commit 296a28e)
norareidy committed Sep 3, 2024
1 parent 4385c05 commit 538f5d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/includes/quick-start/main.go
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 538f5d7

Please sign in to comment.