From d488d541b3538c36cd54ae46931ae63252fbc5a2 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Sun, 30 Jun 2024 16:07:31 +1000 Subject: [PATCH] Doc for Orb.Str.Slice --- lib/orb/str.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/orb/str.ex b/lib/orb/str.ex index 881c064..a9ca390 100644 --- a/lib/orb/str.ex +++ b/lib/orb/str.ex @@ -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