diff --git a/includes/std/core.pat b/includes/std/core.pat index df0403d..7134b60 100644 --- a/includes/std/core.pat +++ b/includes/std/core.pat @@ -56,17 +56,17 @@ namespace auto std::core { /** - Sets the current default endianess. - Any patterns created following this attribute will be created using the set endianess. - @param endian The new default endianess + Sets the current default endianness. + Any patterns created following this attribute will be created using the set endianness. + @param endian The new default endianness */ fn set_endian(std::mem::Endian endian) { builtin::std::core::set_endian(u32(endian)); }; /** - Gets the current default endianess. - @return The currently set default endianess + Gets the current default endianness. + @return The currently set default endianness */ fn get_endian() { return builtin::std::core::get_endian(); diff --git a/includes/std/mem.pat b/includes/std/mem.pat index 8e0e810..2f5d2f7 100644 --- a/includes/std/mem.pat +++ b/includes/std/mem.pat @@ -29,7 +29,7 @@ namespace auto std::mem { using Section = u128; /** - The Endianess of a value + The endianness of a value */ enum Endian : u8 { Native = 0, @@ -126,7 +126,7 @@ namespace auto std::mem { Reads a unsigned value from the memory @param address The address to read from @param size The size of the value to read - @param [endian] The endianess of the value to read. Defaults to native + @param [endian] The endianness of the value to read. Defaults to native @return The value read */ fn read_unsigned(u128 address, u8 size, Endian endian = Endian::Native) { @@ -137,7 +137,7 @@ namespace auto std::mem { Reads a signed value from the memory @param address The address to read from @param size The size of the value to read - @param [endian] The endianess of the value to read. Defaults to native + @param [endian] The endianness of the value to read. Defaults to native @return The value read */ fn read_signed(u128 address, u8 size, Endian endian = Endian::Native) { diff --git a/includes/std/string.pat b/includes/std/string.pat index b2e2872..01eebdb 100644 --- a/includes/std/string.pat +++ b/includes/std/string.pat @@ -4,13 +4,13 @@ import std.io; import std.mem; /*! - Libray to interact with strings. + Library to interact with strings. */ namespace auto std::string { /** - Base type for sized strings. Represents a string with its size preceeding it. + Base type for sized strings. Represents a string with its size preceding it. @tparam SizeType The type of the size field. @tparam DataType The type of the characters. */ diff --git a/includes/std/sys.pat b/includes/std/sys.pat index 9a8fc5d..321a6e6 100644 --- a/includes/std/sys.pat +++ b/includes/std/sys.pat @@ -50,7 +50,7 @@ namespace auto std { }; /** - Throws an error notifying the developer that the current codepath is not implemented currently. + Throws an error notifying the developer that the current code path is not implemented currently. */ fn unimplemented() { std::error("Unimplemented code path reached!"); diff --git a/includes/type/byte.pat b/includes/type/byte.pat index 930fa46..895c875 100644 --- a/includes/type/byte.pat +++ b/includes/type/byte.pat @@ -32,7 +32,7 @@ namespace auto type { } [[format("type::impl::format_nibbles")]]; /** - Type representing a single Byte. Decodes the byte as it's hexadeicmal value, individual bits and nibbles + Type representing a single Byte. Decodes the byte as it's hexadecimal value, individual bits and nibbles */ union Byte { u8 value; diff --git a/includes/type/path.pat b/includes/type/path.pat index cf9ca7a..2edd522 100644 --- a/includes/type/path.pat +++ b/includes/type/path.pat @@ -8,10 +8,10 @@ namespace auto type { /** Type representing a single path segment. Use the `Path` type instead of using this on its own - @tparam Delimeter The delimeter sequence used to separate two path segments + @tparam Delimiter The delimiter sequence used to separate two path segments */ - struct PathSegment { - char string[while(std::mem::read_string($, std::string::length(Delimeter)) != Delimeter && std::mem::read_unsigned($, 1) != 0x00)]; + struct PathSegment { + char string[while(std::mem::read_string($, std::string::length(Delimiter)) != Delimiter && std::mem::read_unsigned($, 1) != 0x00)]; char separator [[hidden]]; if (separator == 0x00) { @@ -21,20 +21,20 @@ namespace auto type { } [[sealed, format("type::impl::format_path_segment")]]; /** - A generic type representing a path with an arbitrary delimeter - @tparam Delimeter The delimeter sequence used to separate two path segments + A generic type representing a path with an arbitrary delimiter + @tparam Delimiter The delimiter sequence used to separate two path segments */ - struct Path { - PathSegment segments[while(true)]; + struct Path { + PathSegment segments[while(true)]; } [[format("type::impl::format_path")]]; /** - A type representing a Unix path using a '/' forwardslash as delimeter + A type representing a Unix path using a '/' forward slash as delimiter */ using UnixPath = Path<"/">; /** - A type representing a DOS path using a '\\' backslash as delimeter + A type representing a DOS path using a '\\' backslash as delimiter */ using DOSPath = Path<"\\">;