帮我检查以下文本中的语法错误和单词拼写错误。


"Yestrday I went to the markt to buy some appels and bananass. Whiel I was ther, I saw a beautifull flower garden."
"Yesterday I went to the market to buy some apples and bananas. While I was there, I saw a beautiful flower garden." 

改正后的：昨天我去市场买了一些苹果和香蕉。当我在那里的时候，我看到了一个美丽的花园。 

已更正拼写和语法错误。