Skip to content

Commit 97e567f

Browse files
committed
fix formatting
1 parent d72f411 commit 97e567f

File tree

2 files changed

+42
-29
lines changed

2 files changed

+42
-29
lines changed

source/crud/delete.txt

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -153,31 +153,37 @@ existing document in the ``restaurants`` collection. Select the
153153
The following code uses structs to define and delete a document in the
154154
``restaurants`` collection:
155155

156-
.. input:: /includes/usage-examples/code-snippets/deleteOne.go
157-
:language: go
158-
:dedent:
156+
.. io-code-block::
157+
:copyable: true
159158

160-
.. output::
161-
:language: none
162-
:visible: false
159+
.. input:: /includes/usage-examples/code-snippets/deleteOne.go
160+
:language: go
161+
:dedent:
163162

164-
Documents deleted: 1
163+
.. output::
164+
:language: none
165+
:visible: false
166+
167+
Documents deleted: 1
165168

166169
.. tab:: bson.D
167170
:tabid: bsonExample
168171

169172
The following code uses a bson.D type to define and delete a document in the
170173
``restaurants`` collection:
171174

172-
.. input:: /includes/usage-examples/code-snippets/deleteOneBson.go
173-
:language: go
174-
:dedent:
175+
.. io-code-block::
176+
:copyable: true
177+
178+
.. input:: /includes/usage-examples/code-snippets/deleteOneBson.go
179+
:language: go
180+
:dedent:
175181

176-
.. output::
177-
:language: none
178-
:visible: false
182+
.. output::
183+
:language: none
184+
:visible: false
179185

180-
Documents deleted: 1
186+
Documents deleted: 1
181187

182188
DeleteMany() Example: Full File
183189
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -196,31 +202,38 @@ existing documents in the ``restaurants`` collection. Select the
196202
The following code uses structs to define and delete documents in the
197203
``restaurants`` collection:
198204

199-
.. input:: /includes/usage-examples/code-snippets/deleteMany.go
200-
:language: go
201-
:dedent:
205+
.. io-code-block::
206+
:copyable: true
202207

203-
.. output::
204-
:language: none
205-
:visible: false
208+
.. input:: /includes/usage-examples/code-snippets/deleteMany.go
209+
:language: go
210+
:dedent:
211+
206212

207-
Documents deleted: 2
213+
.. output::
214+
:language: none
215+
:visible: false
216+
217+
Documents deleted: 6
208218

209219
.. tab:: bson.D
210220
:tabid: bsonExample
211221

212222
The following code uses a bson.D type to define and delete documents in the
213223
``restaurants`` collection:
214224

215-
.. input:: /includes/usage-examples/code-snippets/deleteManyBson.go
216-
:language: go
217-
:dedent:
225+
.. io-code-block::
226+
:copyable: true
227+
228+
.. input:: /includes/usage-examples/code-snippets/deleteManyBson.go
229+
:language: go
230+
:dedent:
218231

219-
.. output::
220-
:language: none
221-
:visible: false
232+
.. output::
233+
:language: none
234+
:visible: false
222235

223-
Documents deleted: 2
236+
Documents deleted: 6
224237

225238
Additional Information
226239
----------------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ func main() {
5858
// Prints the number of deleted documents
5959
fmt.Printf("Documents deleted: %d\n", result.DeletedCount)
6060

61-
// When you run this file for the first time, it should print:
61+
// When you run this file for the first time, it prints output similar to the following:
6262
// Documents deleted: 1
6363
}

0 commit comments

Comments
 (0)