Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNIVERSAL.pm docfix #22210

Closed
Lamprecht opened this issue May 13, 2024 · 1 comment
Closed

UNIVERSAL.pm docfix #22210

Lamprecht opened this issue May 13, 2024 · 1 comment

Comments

@Lamprecht
Copy link
Contributor

Where
UNIVERSAL.pm

Description
Documentation of method isa. The sentence below makes no sense:

If you want to be sure that you're calling isa as a method, not a class, check the invocand with blessed from Scalar::Util first:

Suggested fix:

index 5e9537daae..79dda9459e 100644
--- a/lib/UNIVERSAL.pm
+++ b/lib/UNIVERSAL.pm
@@ -82,7 +82,7 @@ reference. The L<C operator|perlop/"Class Instance Operator"> is an
alternative that simply returns false in this case, so the C is not
needed.

-If you want to be sure that you're calling C as a method, not a class,
+If you want to be sure that you're calling C on an instance, not a class,
check the invocand with C from LScalar::Util first:

use Scalar::Util 'blessed';

@book
Copy link
Contributor

book commented May 23, 2024

Thanks, applied as 869c089.

@book book closed this as completed May 23, 2024
@book book removed the Needs Triage label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants