From: Johannes Altmanninger Date: Sat, 13 Nov 2021 13:05:08 GMT Subject: Re: [PATCH] MyFirstContribution.txt: fix undeclared variable i in sample code Message-ID: <20211113130508.zziheannky6dcilj@gmail.com> In-Reply-To: <20211113122833.174330-1-gotlouemail@gmail.com> On Sat, Nov 13, 2021 at 05:58:35PM +0530, Saksham Mittal wrote: > In the sample code given to print the arguments given to ```git psuh```, > the iterating variable i is not declared as integer. I have fixed it so > the error is no longer there. > > Signed-off-by: Saksham Mittal > --- > Documentation/MyFirstContribution.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/MyFirstContribution.txt b/Documentation/MyFirstContribution.txt > index 015cf24631..434a833a0b 100644 > --- a/Documentation/MyFirstContribution.txt > +++ b/Documentation/MyFirstContribution.txt > @@ -297,7 +297,7 @@ existing `printf()` calls in place: > "Your args (there are %d):\n", > argc), > argc); > - for (i = 0; i < argc; i++) > + for (int i = 0; i < argc; i++) It is declared, there is an "int i;" a few lines up.