When Tom came to visit me ,I was on my way toWhen Tom came to visit me ,I was on my way to the hospital.这句话有没有英语语法错误?

问题描述:

When Tom came to visit me ,I was on my way to
When Tom came to visit me ,I was on my way to the hospital.这句话有没有英语语法错误?

我觉得是没有语法问题的.