A Canadian citizen who was detained in China this month has returned to Canada after being released from custody, a Canadian government spokesman said on Friday.

The spokesman did not specify when the Canadian was released or returned to Canada. Earlier in the day, broadcaster CBC identified the citizen as Canadian teacher Sarah McIver.

China's Foreign Ministry said this month that McIver was undergoing "administrative punishment" for working illegally.