Skip to content

Commit db2c497

Browse files
committed
typo fixes
1 parent a43097d commit db2c497

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Struct.pm

+6-6
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ sub getPack {
237237
my @buffer_ptrs = (); #this contains the struct_ptrs that were placed in the
238238
#the struct, its part of "C func changes the struct ptr to a private allocated
239239
#struct" code, it is push/poped only for struct ptrs, it is NOT a 1 to
240-
#1 mapping between all struct members, so dont access it with indexes
240+
#1 mapping between all struct members, so don't access it with indexes
241241

242242
my $align = $self->align();
243243

@@ -411,7 +411,7 @@ else{ #new ptr is true
411411
}
412412
#must fix {buffer} with contents of the new struct, $structptr might be
413413
#null or might be a SVPV from a ::Struct that was ignored, in any case,
414-
#a forign memory allocator is at work here
414+
#a foreign memory allocator is at work here
415415
$$SVMemberRef->{buffer} = Win32::API::ReadMemory($newstructptr, $$SVMemberRef->sizeof)
416416
if($oldstructptr != $newstructptr);
417417
#always must be called, if new ptr is not null, at this point, C func, did
@@ -584,7 +584,7 @@ function takes care of removing the semicolon after the member
584584
name. Win32::API::Struct does B<NOT> support Enums, Unions, or Bitfields.
585585
C<NAME> must not end in C<*>, typedef creates structs, not struct pointers.
586586
See L<Win32::API::Type/"typedef">
587-
on howto create a struct pointer type. Returns true on success, and undef on error.
587+
on how to create a struct pointer type. Returns true on success, and undef on error.
588588
On error it L<warns|perlfunc/warn> with the specific reason.
589589
590590
The synopsis example could be written like this:
@@ -600,7 +600,7 @@ syntax), which is pretty cool:
600600
};
601601
602602
L<Win32::API/Call> automatically knows that an 'LPNAME' type, refers
603-
to a 'NAME' type struct. Also see L<Win32::API::Type/"typedef"> on howto declare
603+
to a 'NAME' type struct. Also see L<Win32::API::Type/"typedef"> on how to declare
604604
pointers to struct types.
605605
606606
Unlike in Win32::API, a single non-array char or CHAR struct member in a
@@ -697,9 +697,9 @@ allocator. Some C APIs give you static global buffers which never are freed or f
697697
automatically in the next call to a function from to that DLL.
698698
699699
With foreign allocators, its best to treat to write a pointer class, bless the
700-
ref to scalar interger (holding the pointer) into that class to ensure that the
700+
ref to scalar integer (holding the pointer) into that class to ensure that the
701701
DESTROY method will free the pointer and you never leak it, and your write
702-
method accesors using L<perlfunc/pack>, L<Win32::API/ReadMemory> and
702+
method accessors using L<perlfunc/pack>, L<Win32::API/ReadMemory> and
703703
L<Win32::API/WriteMemory> around the pointer.
704704
705705

0 commit comments

Comments
 (0)