Date: Mon, 4 Jun 2018 18:05:57 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471626 - head/devel/p5-Return-Type Message-ID: <201806041805.w54I5vWd065444@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Mon Jun 4 18:05:57 2018 New Revision: 471626 URL: https://svnweb.freebsd.org/changeset/ports/471626 Log: Clean up pkg-descr Modified: head/devel/p5-Return-Type/pkg-descr Modified: head/devel/p5-Return-Type/pkg-descr ============================================================================== --- head/devel/p5-Return-Type/pkg-descr Mon Jun 4 18:05:51 2018 (r471625) +++ head/devel/p5-Return-Type/pkg-descr Mon Jun 4 18:05:57 2018 (r471626) @@ -1,12 +1,10 @@ Return::Type allows you to specify a return type for your subs. Type constraints from any Type::Tiny, MooseX::Types or MouseX::Types type library are supported. -The simple syntax for specifying a type constraint is shown in the "SYNOPSIS" -[1]. If the attribute is passed a single type constraint as shown, this will be +The simple syntax for specifying a type constraint is shown in the "SYNOPSIS". +If the attribute is passed a single type constraint as shown, this will be applied to the return value if called in scalar context, and to each item in the returned list if called in list context. (If the sub is called in void context, type constraints are simply ignored.) - -[1] http://search.cpan.org/dist/Return-Type/lib/Return/Type.pm#SYNOPSIS WWW: https://metacpan.org/release/Return-Type
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806041805.w54I5vWd065444>