diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-01 15:50:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-01 15:50:03 +0000 |
commit | ccb5e4ddcfd11264f92f4824074441e42ff16ac0 (patch) | |
tree | b130e3e6aae9f03a374a824a2720b6d39f7e2f60 /perl_checker.src | |
parent | 9cbab8aa086051a00a05a8fdfaf58a0e7fe0c418 (diff) | |
download | perl-MDK-Common-ccb5e4ddcfd11264f92f4824074441e42ff16ac0.tar perl-MDK-Common-ccb5e4ddcfd11264f92f4824074441e42ff16ac0.tar.gz perl-MDK-Common-ccb5e4ddcfd11264f92f4824074441e42ff16ac0.tar.bz2 perl-MDK-Common-ccb5e4ddcfd11264f92f4824074441e42ff16ac0.tar.xz perl-MDK-Common-ccb5e4ddcfd11264f92f4824074441e42ff16ac0.zip |
fix error message for grep not used with a block
Diffstat (limited to 'perl_checker.src')
-rw-r--r-- | perl_checker.src/parser_helper.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index daaad87..21f91d8 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -689,7 +689,7 @@ let call_func is_a_func (e, para) = | "map" | "grep" -> (match para with | Anonymous_sub _ :: _ -> () - | _ -> warn_rule (sprintf "always use \"%s\" with a block (eg: map { ... } @list)" f)); + | _ -> warn_rule (sprintf "always use \"%s\" with a block (eg: %s { ... } @list)" f f)); None | _ -> None |