Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed May 3, 2021
1 parent e2a396a commit c0a4ac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ This allows for `cc` with spaces in it.
## ppflags

The C pre-processor flags. This may change in the future, or on some platforms, but as of
this writing this is `-dM -E -x c` for C and `-dM -E -x c++` for C++. This must be an
array reference.
this writing this is `['-dM', '-E', '-x', 'c']` for C and `['-dM', '-E', '-x', 'c++']`
for C++. This must be an array reference.

## cflags

Expand Down Expand Up @@ -95,7 +95,7 @@ my $const = $c->get_single($name);
```

Get a single constant by the name of `$name`. Returns an instance of
[Const::Introspect::C](https://metacpan.org/pod/Const::Introspect::C). This is most useful for getting the integer
[Const::Introspect::C::Constant](https://metacpan.org/pod/Const::Introspect::C::Constant). This is most useful for getting the integer
values for named enumerated values.

## compute\_expression\_type
Expand Down
6 changes: 3 additions & 3 deletions lib/Const/Introspect/C.pm
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ has cc => (
=head2 ppflags
The C pre-processor flags. This may change in the future, or on some platforms, but as of
this writing this is C<-dM -E -x c> for C and C<-dM -E -x c++> for C++. This must be an
array reference.
this writing this is C<< ['-dM', '-E', '-x', 'c'] >> for C and C<< ['-dM', '-E', '-x', 'c++'] >>
for C++. This must be an array reference.
=cut

Expand Down Expand Up @@ -273,7 +273,7 @@ sub get_macro_constants ($self)
my $const = $c->get_single($name);
Get a single constant by the name of C<$name>. Returns an instance of
L<Const::Introspect::C>. This is most useful for getting the integer
L<Const::Introspect::C::Constant>. This is most useful for getting the integer
values for named enumerated values.
=cut
Expand Down

0 comments on commit c0a4ac0

Please sign in to comment.