Commits

Anonymous committed 81cff97

Two more synopsis corrections.

  • Participants
  • Parent commits 1b330f9

Comments (0)

Files changed (2)

modules/Text-Sprintf-Named/Changes

 Revision history for Text::Sprintf::Named
 
+0.0203
+        * Corrected two more code typos in the synopsis.
+            - Thanks to kent\n!
+
 0.0202  Sat Jan 10 21:22:20 IST 2009
         * Corrected the synopsis to say ->format({args => \%args})
         instead of ->format(\%args) which was incorrect.

modules/Text-Sprintf-Named/lib/Text/Sprintf/Named.pm

 
     my $formatter =
         Text::Sprintf::Named->new(
-            {fmt => "Hello %(name)s! Today is %(day)s!"
+            {fmt => "Hello %(name)s! Today is %(day)s!"}
         );
 
     # Returns "Hello Ayeleth! Today is Sunday!"
-    $formmater->format({args => {'name' => "Ayeleth", 'day' => "Sunday"}});
+    $formatter->format({args => {'name' => "Ayeleth", 'day' => "Sunday"}});
 
     # Returns "Hello John! Today is Thursday!"
     $formatter->format({args => {'name' => "John", 'day' => "Thursday"}});