Skip to content

Commit c7c5a73

Browse files
authored
Merge pull request #3 from coherentpath/init-lib
Fix typespec bug
2 parents 3346124 + dc2fd6f commit c7c5a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/buffer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ defmodule Buffer do
171171
the buffer will be flushed async.
172172
"""
173173
@spec insert_batch(GenServer.server(), Enumerable.t(), keyword()) ::
174-
{:ok | non_neg_integer()} | {:error, atom()}
174+
{:ok, non_neg_integer()} | {:error, atom()}
175175
def insert_batch(buffer, items, opts \\ []) do
176176
with {:ok, {partitioner, _}} <- fetch_buffer(buffer) do
177177
{:ok, do_insert_batch(buffer, partitioner, items, opts)}

0 commit comments

Comments
 (0)