Skip to content

Commit bd21a08

Browse files
authored
Merge pull request #117 from phanmn/master
Add error to find_one spec
2 parents d31162e + a0d8ca7 commit bd21a08

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
@@ -770,7 +770,7 @@ defmodule Mongo do
770770
Mongo.find_one(top, "jobs", %{}, read_concern: %{level: "local"})
771771
"""
772772
@spec find_one(GenServer.server(), collection, BSON.document(), Keyword.t()) ::
773-
BSON.document() | nil
773+
BSON.document() | nil | {:error, any}
774774
def find_one(topology_pid, coll, filter, opts \\ []) do
775775
opts =
776776
opts

0 commit comments

Comments
 (0)