Without seeing the full text of your comment it's hard to be sure, but it was likely flagged as No Longer Needed and removed (either by the system or by a moderator):
Take a look at the Help Center page about commenting:
When should I comment?
You should submit a comment if you want to:
- Request clarification from the author;
- Leave constructive criticism that guides the author in improving the post;
- Add relevant but minor or transient information to a post (e.g. a link to a related question, or an alert to the author that the
question has been updated).
Comments should contain substantive information. Friendly chit-chat like "Welcome" and "Thanks" does not fall into any of these categories, so comments should not be used for that purpose. It's true that there has been a push to make the site more inclusive, but the idea is leave friendly and helpful comments that guide new users towards improving their questions and finding answers, rather than just saying hello without any substance.
Stack Overflow has been always been very strict about minimizing chit-chat and cutting straight to substantive discussion -- to the extent that greetings and salutations are routinely removed from posts. Our goal is to build a library of high-quality programming Q&A, and any off-topic noise adds clutter and reduces the usefulness of the site, especially to future visitors who came from Google and just want to get a quick answer instead of reading through pages and pages of back-and-forth dialog.