Skip to content

Commit

Permalink
alias Orb.Str when use Orb
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Jun 30, 2024
1 parent a145f1e commit f983f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/orb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ defmodule Orb do
# TODO: don’t import types/1
import Orb, only: [export: 1, global: 1, global: 2, global: 3, types: 1]
import Orb.DSL.Defw
alias Orb.{I32, I64, S32, U32, F32, F64, Memory, Table}
alias Orb.{I32, I64, S32, U32, F32, F64, Memory, Table, Str}
require Orb.{I32, I64, Stack, Table, Memory, Import}

unquote(def_quoted)
Expand Down
4 changes: 2 additions & 2 deletions test/string_constants_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ defmodule StringConstantsTest do
defmodule HTMLTypes do
use Orb

defw doctype(), Orb.Str do
defw doctype(), Str do
"<!doctype html>"
end

defw mime_type(), Orb.Str do
defw mime_type(), Str do
"text/html"
end
end
Expand Down

0 comments on commit f983f09

Please sign in to comment.