[Bps-public-commit] Class-Load branch, master, updated. adfc2dcf91ac2374df3447a9f584bc65280741f6

Shawn Moore sartak at bestpractical.com
Mon Nov 15 13:34:59 EST 2010


The branch, master has been updated
       via  adfc2dcf91ac2374df3447a9f584bc65280741f6 (commit)
      from  79bb22fbd79505526cc0454e454f12008714a88b (commit)

Summary of changes:
 lib/Class/Load.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit adfc2dcf91ac2374df3447a9f584bc65280741f6
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Nov 15 13:34:45 2010 -0500

    Small prose fixes

diff --git a/lib/Class/Load.pm b/lib/Class/Load.pm
index fa0cc39..31d1cb3 100644
--- a/lib/Class/Load.pm
+++ b/lib/Class/Load.pm
@@ -67,10 +67,10 @@ sub try_load_class {
     my $file = _mod2pm($class);
     # This says "our diagnostics of the package
     # say perl's INC status about the file being loaded are
-    # wrong", so we delete it from $INC, so when we call require(),
+    # wrong", so we delete it from %INC, so when we call require(),
     # perl will *actually* try reloading the file.
     #
-    # If the file is already in $INC, it won't retry,
+    # If the file is already in %INC, it won't retry,
     # And on 5.8, it won't fail either!
     #
     # The extra benefit of this trick, is it helps even on
@@ -219,7 +219,7 @@ implementation.
 
 =head2 load_optional_class Class::Name -> 0|1
 
-C<load_optional_class> is lots like C<try_load_class>, but also lots like
+C<load_optional_class> is a lot like C<try_load_class>, but also a lot like
 C<load_class>.
 
 If the class exists, and it works, then it will return 1.
@@ -228,7 +228,7 @@ If the class doesn't exist, and it appears to not exist on disk either, it
 will return 0.
 
 If the class exists on disk, but loading from disk results in an error
-( ie: Syntax ), then it will C<croak> with that error.
+( ie: a syntax error ), then it will C<croak> with that error.
 
 This is useful for using if you want a fallback module system, ie:
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list