Skip to content

Commit

Permalink
Merge pull request #440 from tbrowder/master
Browse files Browse the repository at this point in the history
fix typos, spellings, and grammar
  • Loading branch information
zoffixznet committed Apr 4, 2016
2 parents 72f4ed9 + 0663fbb commit 868612a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/Language/5to6-nutshell.pod
Expand Up @@ -969,7 +969,7 @@ denominator is limited to C<2**64>, after which it will automatically
upgrade to C<Num> to preserve performance). If you want a C<Rat> with
an arbitrary-precision denominator, C<FatRat> is available.
=head3 C<constant>
=head3 X<C<constant>>
In Perl 6, C<constant> is a declarator for variables, just like C<my>,
except the variable is permanently locked to the result of its
Expand Down
10 changes: 5 additions & 5 deletions doc/Language/nativecall.pod
Expand Up @@ -379,22 +379,22 @@ The C<native> trait accepts the library name or the full path.
sub mysql_affectied_rows( .. ) returns int32 is native(LIBMYSQL);
sub bar is native(LIBFOO);
You can also put an incomplete path like './foo', NativeCall will automatically put
the right extension according to the plateform specification.
You can also put an incomplete path like './foo' and NativeCall will automatically put
the right extension according to the platform specification.
BE CAREFUL: the C<native> trait and C<constant> are evaluated at compile time. Don't write a constant
that depend on dynamic variable like:
that depends on a dynamic variable like:
constant LIBMYSQL = %*ENV<P6LIB_MYSQLCLIENT> || 'mysqlclient';
This will keep the value given at compile time. A module will be precompiled and C<LIBMYSQL> will
keep the value it get evaluated when the module get precompiled.
keep the value it acquires when the module gets precompiled.
=head2 ABI/API Version
If you write C<native('foo')> NativeCall will search libfoo.so under Unix like system (libfoo.dynlib on Os X, foo.dll on win32).
In most modern system it will require you or the user of your module to install
the develepment package because it's recommended to always provide an API/ABI version to a
the development package because it's recommended to always provide an API/ABI version to a
shared library, so libfoo.so ends often being a symbolic link provided only by a devel package.
To avoid that, the C<native> trait allows you to specify the API/ABI version. It can be a full
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/quoting.pod
Expand Up @@ -210,7 +210,7 @@ Again, the output of the external command can be kept in a variable:
See also L<shell|/routine/shell> and L<run|/routine/run> for other ways to
execute external commands.
=head2 Heredocs: :to
=head2 X<Heredocs: :to>
A convenient way to write multi-line string literals are I<heredocs>, which
let you choose the delimiter yourself:
Expand Down

0 comments on commit 868612a

Please sign in to comment.