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)
  • Loading branch information
norareidy committed Sep 3, 2024
1 parent ba02e80 commit 1ef5c46
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
Expand Up @@ -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))
Expand Down

0 comments on commit 1ef5c46

Please sign in to comment.