Feeling silly

Feeling silly for telling someone I was having suicidal thoughts. I was having these thoughts earlier but they went away now I feel silly for even saying anything to my professor