fix erur fix
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class.pm
index 0edcc70..89e7b83 100644 (file)
@@ -47,7 +47,7 @@ Create a base schema class called DB/Main.pm:
 
   1;
 
-Create a class that represent artists, who have many CDs, in DB/Main/Artist.pm:
+Create a class to represent artists, who have many CDs, in DB/Main/Artist.pm:
 
   package DB::Main::Artist;
   use base qw/DBIx::Class/;
@@ -101,12 +101,12 @@ Then you can use these classes in your application's code:
     { order_by => 'title' }
   );
 
-  my $millenium_cds_rs = $ds->resultset('CD')->search(
+  my $millennium_cds_rs = $ds->resultset('CD')->search(
     { year => 2000 },
     { prefetch => 'artist' }
   );
 
-  my $cd = $millenium_cds_rs->next; # SELECT ... FROM cds JOIN artists ...
+  my $cd = $millennium_cds_rs->next; # SELECT ... FROM cds JOIN artists ...
   my $cd_artist_name = $cd->artist->name; # Already has the data so no query
 
   my $new_cd = $ds->resultset('CD')->new({ title => 'Spoon' });
@@ -116,7 +116,7 @@ Then you can use these classes in your application's code:
 
   $ds->txn_do(sub { $new_cd->update }); # Runs the update in a transaction
 
-  $millenium_cds_rs->update({ year => 2002 }); # Single-query bulk update
+  $millennium_cds_rs->update({ year => 2002 }); # Single-query bulk update
 
 =head1 DESCRIPTION