Skip to content

Commit

Permalink
Fixed SYNOPSIS
Browse files Browse the repository at this point in the history
  • Loading branch information
kfly8 committed Dec 18, 2024
1 parent 7f57de1 commit f3bb24c
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 @@ -8,8 +8,9 @@ Syntax::Keyword::Assert - assert keyword for Perl with zero runtime cost
```perl
use Syntax::Keyword::Assert;

assert { 1 >= 10 };
# => Assertion failed (1 >= 10)
my $obj = bless {}, "Foo";
assert($obj isa "Bar");
# => Assertion failed (Foo=HASH(0x11e022818) isa "Bar")
```

# DESCRIPTION
Expand Down Expand Up @@ -40,7 +41,6 @@ Here are some examples:
assert("apple" eq "banana"); # => Assertion failed ("apple" eq "banana")
assert(123 != 123); # => Assertion failed (123 != 123)
assert(1 > 10); # => Assertion failed (1 > 10)
assert($foo isa Bar); # => Assertion failed (Foo=HASH(0x11e022818) isa "Bar"
```

# SEE ALSO
Expand Down
6 changes: 3 additions & 3 deletions lib/Syntax/Keyword/Assert.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ Syntax::Keyword::Assert - assert keyword for Perl with zero runtime cost
use Syntax::Keyword::Assert;
assert { 1 >= 10 };
# => Assertion failed (1 >= 10)
my $obj = bless {}, "Foo";
assert($obj isa "Bar");
# => Assertion failed (Foo=HASH(0x11e022818) isa "Bar")
=head1 DESCRIPTION
Expand All @@ -76,7 +77,6 @@ Here are some examples:
assert("apple" eq "banana"); # => Assertion failed ("apple" eq "banana")
assert(123 != 123); # => Assertion failed (123 != 123)
assert(1 > 10); # => Assertion failed (1 > 10)
assert($foo isa Bar); # => Assertion failed (Foo=HASH(0x11e022818) isa "Bar"
=head1 SEE ALSO
Expand Down

0 comments on commit f3bb24c

Please sign in to comment.