Leupold's patent (with drawings) for their detent adjustment. It's not the only way it's been done. But I believe this is how Leupold does it now.

https://patents.google.com/patent/US6519890B1/en