chī​yī​qiàn, zhǎng​yī​zhì

learn from mistakes