Skip to content

Commit 62a395e

Browse files
committed
Correct truncate a collection example
1 parent 61d2b44 commit 62a395e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/collections_and_documents.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147

148148
###
149149
# Truncate a collection
150-
# Deletion returns the number of documents deleted
151-
collection = @typesense.collections['companies'].truncate
150+
# Truncation returns the number of documents deleted
151+
collection = @typesense.collections['companies'].documents.truncate
152152
ap collection
153153

154154
# {

0 commit comments

Comments
 (0)