Skip to content

Commit

Permalink
Merge pull request #144 from ivan-safonov/fix-typespec
Browse files Browse the repository at this point in the history
fix write_to typespec
  • Loading branch information
xou committed Mar 3, 2024
2 parents e06af2d + 4e0661a commit 66839fb
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 66839fb

Please sign in to comment.