update 'protocol not defined' wording in doctest

This commit is contained in:
Patrick Carr 2020-05-21 21:52:15 -07:00
commit f05ecf0130

View file

@ -49,7 +49,7 @@ defmodule Elasticsearch.Index.Bulk do
\"\"\"
iex> Bulk.encode!(Cluster, 123, "my-index")
** (Protocol.UndefinedError) protocol Elasticsearch.Document not implemented for 123. This protocol is implemented for: Comment, Post
** (Protocol.UndefinedError) protocol Elasticsearch.Document not implemented for 123 of type Integer. This protocol is implemented for the following type(s): Post, Comment
"""
def encode!(cluster, struct, index) do
config = Cluster.Config.get(cluster)