[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indentation messed up by comments
From: |
Victor R. Cardona |
Subject: |
Re: indentation messed up by comments |
Date: |
Wed, 4 Apr 2001 23:21:11 -0500 |
User-agent: |
Mutt/1.3.12i |
On Wed, Apr 04, 2001 at 03:30:48PM -0700, Min Ouyang wrote:
> foo()
> {
> //comment;
> int foo_int;
> if(...)
> //comment after if;
> foot_int=1;
> }
>
> please note that "foo_int=1;" should be indented the same as "//comment
> after if".
Include braces for the statements in the if-test.
if(...) {
//comment
foo_int=1;
}
- v
--
Victor R. Cardona
vcardona@home.com
"Behold the keyboard of Kahless, the greatest Klingon
code warrior that ever lived!"