Skip to content

Commit ac9ebdc

Browse files
committed
remove str formatting
1 parent a36a4b6 commit ac9ebdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/includes/usage-examples/code-snippets/replace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959

6060
// Prints the number of modified documents
6161
if result.MatchedCount != 0 {
62-
fmt.Println("Number of documents replaced: %d\n", result.ModifiedCount)
62+
fmt.Println("Number of documents replaced:", result.ModifiedCount)
6363
}
6464

6565
// When you run this file for the first time, it should print:

source/includes/usage-examples/code-snippets/replaceBsonD.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func main() {
5050

5151
// Prints the number of modified documents
5252
if result.MatchedCount != 0 {
53-
fmt.Println("Number of documents replaced: %d\n", result.ModifiedCount)
53+
fmt.Println("Number of documents replaced:", result.ModifiedCount)
5454
}
5555

5656
// When you run this file for the first time, it should print:

0 commit comments

Comments
 (0)