Skip to content

Commit e2a80f0

Browse files
committed
Some more trailing whitespace in code blocks
Also remove some leading whitespace in code blocks for consistency
1 parent cafb2d8 commit e2a80f0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

doc/Language/nativecall.rakudoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ for 0..$native-array.elems - 1 -> $position {
388388
say "Element at position $position is "
389389
~ $native-array[ $position ];
390390
}
391-
392391
=end code
393392

394393
that produces the following output
@@ -526,7 +525,6 @@ function.
526525
=head3 In your Raku code...
527526

528527
=begin code :skip-test<external dependency>
529-
530528
class AStringAndAnInt is repr("CStruct") {
531529
has Str $.a_string;
532530
has int32 $.an_int32;
@@ -551,25 +549,21 @@ C<$.an_int32>. You can always bind native types this way.
551549
=head3 In your C code...
552550

553551
=begin code :lang<C>
554-
555552
typedef struct a_string_and_an_int32_t_ {
556553
char *a_string;
557554
int32_t an_int32;
558555
} a_string_and_an_int32_t;
559-
560556
=end code
561557

562558
Here's the structure. Notice how we've got a C<char *> there.
563559

564560
=begin code :lang<C>
565-
566561
void init_struct(a_string_and_an_int32_t *target, char *str, int32_t int32) {
567562
target->an_int32 = int32;
568563
target->a_string = strdup(str);
569564

570565
return;
571566
}
572-
573567
=end code
574568

575569
In this function we initialize the C structure by assigning an integer

0 commit comments

Comments
 (0)