From 5447a4ee0687295dcb011333d2a56faca289b4f9 Mon Sep 17 00:00:00 2001 From: Judah Caruso Date: Wed, 3 Sep 2025 20:36:44 -0600 Subject: [PATCH] spelling --- internal/array.jai | 8 ++++---- internal/keywords.jai | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/array.jai b/internal/array.jai index 7039bc4..4725da5 100644 --- a/internal/array.jai +++ b/internal/array.jai @@ -32,8 +32,8 @@ Equal :: (lhs: []$T, rhs: []T) -> bool { FindFlags :: enum_flags { - Last; // The last matching element should be returned. - FromEnd; // The search be done in reverse. + Last; // Return the last matching element. + FromEnd; // Search in reverse. } FindResult :: struct(T: Type) { @@ -67,8 +67,8 @@ Contains :: (view: []$T, value: T) -> bool { TrimFlags :: enum_flags { - FromStart; // The start of the array should be trimmed. - FromEnd; // The end of the array should be trimmed. + FromStart; // Trim the start of the array. + FromEnd; // Trim the end of the array. MatchInFull; // Only trim when the cutset matches exactly. } diff --git a/internal/keywords.jai b/internal/keywords.jai index 2fb7110..e21e8ef 100644 --- a/internal/keywords.jai +++ b/internal/keywords.jai @@ -45,7 +45,7 @@ offset_of :: (#discard value: $T, ident: Code, loc := #caller_location) -> int # return offset_of(type, ident, loc = loc); } -/// align_of returns the alignment of the given type. +/// align_of returns the alignment of type T. align_of :: ($T: Type) -> int #expand { return #run -> int { if size_of(T) == 0