Main breaker in a sub panel

Location
Virginia Beach
Occupation
Electrician
Hello,
I was recently on a job in which the main panel had a 2 pole 60 amp breaker feeding #6/3 wire going to a sub panel in a detached building on the same property. However the sub panel had a 2 pole 100 amp main breaker, is this legal according to the NEC?
Thanks,
Matt
 
Top