Skip to content

Commit

Permalink
Doc for Orb.Str.Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Jun 30, 2024
1 parent 65efc10 commit d488d54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/orb/str.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ defmodule Orb.Str do
end

defmodule Slice do
@moduledoc """
A string slice represented as a i64, a compromise for when storing strings as globals (Globals cannot be `(i32 i32)`, only single primitives like `i32` or `i64`).
"""
defstruct push_type: __MODULE__, slice64: nil

with @behaviour Orb.CustomType do
Expand Down

0 comments on commit d488d54

Please sign in to comment.