Fix code example to match current api
[gitmo/Moose.git] / lib / Moose / Spec / Role.pod
index 3862745..6a1086e 100644 (file)
@@ -277,7 +277,7 @@ time using the I<excludes> option.
     package Role::FooBar;
     use Moose::Role;
 
-    with 'Role::Foo' => { excludes => 'foo' };
+    with 'Role::Foo' => { -excludes => 'foo' };
 
     sub foo { ... }
     sub bar { ... }