[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: L::SlidingWindow: Make synopsis pass syntax checking



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 3429df3ca4a8760359d0ee7f3be86647dc7930f5
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Dec 14 09:51:07 2013 +0100

    L::SlidingWindow: Make synopsis pass syntax checking
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/SlidingWindow.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/Lintian/SlidingWindow.pm b/lib/Lintian/SlidingWindow.pm
index f7e95d2..0b6fc55 100644
--- a/lib/Lintian/SlidingWindow.pm
+++ b/lib/Lintian/SlidingWindow.pm
@@ -82,7 +82,9 @@ Lintian::SlidingWindow - Lintian interface to sliding window match
 
 =head1 SYNOPSIS
 
-    my $sfd = Lintian::SlidingWindow->new('<','someevilfile.c', sub locallc { $_ = lc($_); });
+    use Lintian::SlidingWindow;
+
+    my $sfd = Lintian::SlidingWindow->new('<','someevilfile.c', sub { $_ = lc($_); });
     my $window;
     while ($window = $sfd->readwindow()) {
        if (index($window, 'evil') > -1) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: