Skip to content

Commit

Permalink
fix write_to typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
i.safonov committed Feb 27, 2024
1 parent e06af2d commit 4e0661a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixlsx.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Elixlsx do
@doc ~S"""
Write a Workbook object to the given filename.
"""
@spec write_to(Elixlsx.Workbook.t(), String.t()) :: {:ok, String.t()} | {:error, any()}
@spec write_to(Elixlsx.Workbook.t(), String.t()) :: {:ok, charlist} | {:error, any()}
def write_to(workbook, filename) do
wci = Elixlsx.Compiler.make_workbook_comp_info(workbook)
:zip.create(to_charlist(filename), Elixlsx.Writer.create_files(workbook, wci))
Expand Down

0 comments on commit 4e0661a

Please sign in to comment.