Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Corrected the docs for method s in IO::Path. This closes #1054.
  • Loading branch information
Jan-Olof Hendig committed Dec 17, 2016
1 parent 082a560 commit 4ecae5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/Type/IO/Path.pod6
Expand Up @@ -252,9 +252,13 @@ Returns C<Bool::True> if the invocant is a path and the file exists.
=head2 method s
method s(--> Bool)
method s(--> Int)
Returns C<Bool::True> if the invocant is a path and the size is bigger then 0.
If the path is valid and points to a regular file the size of that file
in bytes is returned. If the path is valid but pointing to something which
is not a file, e.g. a directory, a L<X::IO::NotAFile> exception is thrown.
An exception is also thrown if the path is invalid, in that case the exception
type is L<X::IO::DoesNotExist>.
=head2 method l
Expand Down

0 comments on commit 4ecae5a

Please sign in to comment.