fix documentation on DBIx::Class::ResultSource::name_unique_constraint arguments
Slaven Rezic [Fri, 2 Jul 2010 08:29:01 +0000 (10:29 +0200)]
lib/DBIx/Class/ResultSource.pm

index 5eb2c57..25fda37 100644 (file)
@@ -592,14 +592,14 @@ sub add_unique_constraint {
 
 =over 4
 
-=item Arguments: @colnames
+=item Arguments: \@colnames
 
 =item Return value: Constraint name
 
 =back
 
   $source->table('mytable');
-  $source->name_unique_constraint('col1', 'col2');
+  $source->name_unique_constraint(['col1', 'col2']);
   # returns
   'mytable_col1_col2'