So I ran into two of my students in the library this afternoon before the course midterm tomorrow for the class I'm TAing. I casually chatted with them about how studying was going and they each showed me their detailed, thorough study guide/outlines they made (one was 17 pp., the other 20). When I asked, they also told me they had multiple exams this week. They're really hard working students, don't complain, write well, and participate in class.
They asked me general questions, like "Do you think my outline is too detailed or not enough?" etc. I guess I just felt sorry for them, seeing how hard they're working and how much effort they're putting in and I probably disclosed more than I should have. For the midterm, I contributed 2 (out of 20-25) of the short answer questions based on a lecture I gave on a certain topic. With those in mind, I never said directly "make sure you know X" but I strongly hinted and gave them clues until they figured out the topic. They opened their lecture notes and repeated back to me what they had written down (which was the precise answers to the exam questions). So I never actually said the question verbatim, but I let them know they should be very familiar with the information they had just verbalized to me and that if they knew that, they would know the answer to the question.
In the moment, I wasn't really thinking clearly (instead feeling sorry for their hectic exam load and impressed by how much effort they were putting in to this exam amd genuinely wanting to help). But thinking back, I'm now wondering if I crossed some sort of ethical line? Should I tell the professor of the course what I did?