Skip to content

Commit ba820d5

Browse files
Argonusclaude
andauthored
chore: clean up IO.inspect in delete_topics docstring example (#532)
Replace IO.inspect with IO.puts/inspect in the @doc example for KafkaEx.API.delete_topics/3,4 so the rendered hexdocs do not model an anti-pattern. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a9cb23b commit ba820d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/kafka_ex/api.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ defmodule KafkaEx.API do
968968
IO.puts("All topics deleted successfully")
969969
else
970970
failed = DeleteTopics.failed_topics(result)
971-
IO.inspect(failed, label: "Failed to delete")
971+
IO.puts("Failed to delete: " <> inspect(failed))
972972
end
973973
"""
974974
@spec delete_topics(client, [topic_name], timeout) :: {:ok, DeleteTopics.t()} | {:error, error_atom}

0 commit comments

Comments
 (0)