Skip to content

Commit

Permalink
Fix typespec for Lua.API.install/3 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
davydog187 authored Nov 14, 2024
1 parent f3ef3cb commit 918fbaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guides/working-with-lua.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```elixir
Mix.install([
{:lua, "~> 0.0.21"}
{:lua, "~> 0.0.22"}
])
```

Expand Down
2 changes: 1 addition & 1 deletion lib/lua/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule Lua.API do
@type scope_def :: list(String.t())

@callback scope :: scope_def()
@callback install(Lua.t(), scope_def(), any()) :: Lua.t() | String.t()
@callback install(Lua.t(), scope_def(), any()) :: Lua.t() | Lua.Chunk.t() | String.t()
@optional_callbacks [install: 3]

@doc """
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Lua.MixProject do
use Mix.Project

@url "https://github.com/tv-labs/lua"
@version "0.0.21"
@version "0.0.22"

def project do
[
Expand Down

0 comments on commit 918fbaf

Please sign in to comment.