Skip to content

Commit 9240cda

Browse files
authored
Merge pull request #41 from OLIOEX/documents-truncate-example-correction
[Example] Correct truncate a collection example
2 parents 61d2b44 + 62a395e commit 9240cda

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)