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

Re: [Libguestfs] Uneeded []?



On Sun, Aug 05, 2018 at 04:25:47PM +0300, Nir Soffer wrote:
> Looking in recent patch:
> 
> Author: Richard W.M. Jones <rjones redhat com>
> Date:   Fri Aug 3 12:00:01 2018 +0100
> 
>     v2v: python_script: Use correct syntax for array slices in
> documentation.
> 
>     Fixes commit 3d4df397320e8e86932f0b0b4d100644eefc99b4.
> 
> diff --git a/v2v/python_script.mli b/v2v/python_script.mli
> index e30917833..cf137b142 100644
> --- a/v2v/python_script.mli
> +++ b/v2v/python_script.mli
> @@ -44,7 +44,7 @@ with open(sys.argv[1], 'r') as fp:
>  v}
> 
>      The extra arguments, if any, are passed verbatim on the
> -    script command line in [sys.argv[2..]].
> +    script command line in [sys.argv[2:]].
> 
> If the slice should be python syntax, it cab be:
> 
>     script command line in sys.argv[2:].

Correct, but the outer [...] are used in ocamldoc to denote code :-/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


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