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

[lintian] 01/01: doc: Language and example fixes



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

nthykier pushed a commit to branch master
in repository lintian.

commit 2db8c7acfe55b89fb58d08c6d1156502369b08ba
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Sep 9 19:16:23 2014 +0200

    doc: Language and example fixes
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 doc/tutorial/Lintian/Tutorial/WritingChecks.pod | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/doc/tutorial/Lintian/Tutorial/WritingChecks.pod b/doc/tutorial/Lintian/Tutorial/WritingChecks.pod
index fbad813..26cc919 100644
--- a/doc/tutorial/Lintian/Tutorial/WritingChecks.pod
+++ b/doc/tutorial/Lintian/Tutorial/WritingChecks.pod
@@ -189,11 +189,6 @@ An alternative route is using a table like:
 
   my %VALID_MULTI_ARCH_VALUES = map { $_ => 1} qw(no same foreign allowed);
 
-Notice that Lintian automatically strips leading and trailing spaces
-on the I<first> line in a field.  It also strips trailing spaces from
-all other lines, but leading spaces and the " ."-continuation markers
-are kept as is.
-
 We will use the second here:
 
  # deb/pkg-check is loaded as Lintian::deb::pkg_check
@@ -226,7 +221,11 @@ We will use the second here:
      return;
  }
 
-So far so good.
+
+Notice that Lintian automatically strips leading and trailing spaces
+on the I<first> line in a field.  It also strips trailing spaces from
+all other lines, but leading spaces and the " ."-continuation markers
+are kept as is.
 
 =head2 Checking dependencies
 
@@ -241,7 +240,7 @@ L<< $info->relation|Lintian::Collect::Binary/relation (FIELD) >> method for
 this.
 
 The $info->relation returns an instance of L<Lintian::Relation>.  This
-object as an "implies" method that can be used to check if a package
+object has an "implies" method that can be used to check if a package
 has an explicit dependency.  Note that "implies" actually checks if
 one relations "implies" another (i.e. if you satisfied relationA then
 you definitely also satisfied relationB).
@@ -418,9 +417,11 @@ do this for you.  If you are looking for a specific file (or dir), a
 call to "index" will be much faster.  For the contents of a specific dir,
 you can use something like:
 
- foreach my $elem ($info->index('path/to/dir/')->children) {
-     print $elem->name . " is a file" if $elem->is_file;
-     # ...
+ if (my $dir = $info->index('path/to/dir/')) {
+     foreach my $elem ($dir->children) {
+         print $elem->name . " is a file" if $elem->is_file;
+         # ...
+     }
  }
 
 Keep in mind that using the "index" or "sorted_index" method will

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


Reply to: