Question: Here's a situation I ran into recently, which [other](https://meta.stackexchange.com/questions/88627/how-far-can-i-refactor-someone-elses-code) [meta](https://meta.stackexchange.com/questions/101583/when-is-it-appropriate-to-edit-someone-elses-code) [questions](https://meta.stackexchange.com/questions/124111/incorrect-code-edit-comment-or-provide-a-correct-answer) don't seem to cover. The OP wrote:

```
if( foo == bar )
do_stuff( fizz );
do_stuff( buzz );

```

So, formatting it for readability, the "correct" way:

```
if( foo == bar )
    do_stuff( fizz );
do_stuff( buzz );

```

However, the lack of brackets **was** part of the OP's problem. So, I did this:

```
if( foo == bar )
    do_stuff( fizz );
    do_stuff( buzz );

```

And pointed out the issue in the comments.

Does that make sense, or should I have done it the "correct" way?

Answer: 
Since the indentation of the code is, in and of itself, a part of the problem, I wouldn't edit the indentation at all. I don't know if I feel strongly enough to roll back an edit of someone else who changed the indentation, but I would make a point of keeping my own hands off and address the problem(s) in the answer (or comments, depending on whether or not this issue is sufficient to answer the question).
Why is "tipping them off to the problem" something to avoid? Isn't that what we're here for? I would answer, assuming the lack of brackets is their problem, something like this:

---

Your problem is that you don't have brackets after your `if` statement. You seem to believe your code will behave like this:

```
if( foo == bar )
    do_stuff( fizz );
    do_stuff( buzz );

```

But since you have no brackets, it will actually behave like this:

```
if( foo == bar )
    do_stuff( fizz );
do_stuff( buzz );

```

(The compiler doesn't read indents.)

To get the behaviour you want, write the code like this:

```
if( foo == bar )
{
    do_stuff( fizz );
    do_stuff( buzz );
}

```

It's a good habit to always use the brackets to make your intensions clear, even when there is only one line to be executed when the `if` is true.

---

And I would leave the question completely unedited.