From 10ff12bd7730c277c6db410ab1de3ef8edbc005c Mon Sep 17 00:00:00 2001 From: Vladimir Vukanac Date: Mon, 19 Apr 2021 15:36:33 +0200 Subject: [PATCH] Update specs for Mongo.find/4 with error tuple --- lib/mongo.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo.ex b/lib/mongo.ex index 9f7187d1..10688732 100644 --- a/lib/mongo.ex +++ b/lib/mongo.ex @@ -636,7 +636,7 @@ defmodule Mongo do Mongo.find(top, "jobs", %{}, batch_size: 2) """ - @spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor + @spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor | {:error, term()} def find(topology_pid, coll, filter, opts \\ []) do filter = case normalize_doc(filter) do