Skip to content

Commit 10ff12b

Browse files
committed
Update specs for Mongo.find/4 with error tuple
1 parent 5a9dc74 commit 10ff12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ defmodule Mongo do
636636
Mongo.find(top, "jobs", %{}, batch_size: 2)
637637
638638
"""
639-
@spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor
639+
@spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor | {:error, term()}
640640
def find(topology_pid, coll, filter, opts \\ []) do
641641

642642
filter = case normalize_doc(filter) do

0 commit comments

Comments
 (0)