Often when answering a question, I come across a situation where I would like to refer to a user that left a different answer or a comment on the OP's question, so as to give them credit, like I did in this answer.
In this particular situation, a user left a comment on the OP's question, but I felt that I could improve it considerably with a code example, so I did, and I mentioned the username of the user that left the comment (it just seems correct to me to do so) If its just a case of leaving a simple comment, I do so, but if a code example will help, I do that in a separate answer.
Did I do this correctly by including @username in my answer? Or is there a certain 'protocol' or better way to do this? I havent found anything related in the faq.