mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
chore: fix spelling
This commit is contained in:
@ -326,7 +326,7 @@ of the string is computed with C<strlen()>.
|
||||
|
||||
Otherwise C<ptr> is converted to a C<"void *"> and C<len> gives the
|
||||
length of the data. The data may contain embedded zeros and need not be
|
||||
byte-oriented (though this may cause endianess issues).
|
||||
byte-oriented (though this may cause endianness issues).
|
||||
|
||||
This function is mainly useful to convert (temporary) C<"const char *">
|
||||
pointers returned by C functions to Lua strings and store them or pass
|
||||
|
||||
@ -847,7 +847,7 @@ through unions is explicitly detected and allowed.
|
||||
=item * B<Constructor>: a ctype object can be called and used as a
|
||||
constructor. This is equivalent to C<ffi.new(ct, ...)>, unless a
|
||||
C<__new> metamethod is defined. The C<__new> metamethod is called with
|
||||
the ctype object plus any other arguments passed to the contructor.
|
||||
the ctype object plus any other arguments passed to the constructor.
|
||||
Note that you have to use C<ffi.new> inside of it, since calling
|
||||
C<ct(...)> would cause infinite recursion.
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ also the C<-b> command line option.
|
||||
|
||||
The generated bytecode is portable and can be loaded on any
|
||||
architecture that LuaJIT supports, independent of word size or
|
||||
endianess. However the bytecode compatibility versions must match.
|
||||
endianness. However the bytecode compatibility versions must match.
|
||||
Bytecode stays compatible for dot releases (x.y.0 E<rarr> x.y.1), but
|
||||
may change with major or minor releases (2.0 E<rarr> 2.1) or between
|
||||
any beta release. Foreign bytecode (e.g. from Lua 5.1) is incompatible
|
||||
|
||||
Reference in New Issue
Block a user