How do you finish carpet on the landing at the top of a hardwood staircase?
You could wrap the carpet to meet the final riser, or you can install a landing tread. 

It completely depends on your preference.