UCMJ, ART. 125. SODOMY
(a) Any person subject to this chapter who engages in unnatural carnal copulation with another person of the same or opposite sex or with an animal is guilty of sodomy. Penetration , however slight, is sufficient to complete the offense.
(b) Any person found guilty of sodomy shall be punished as a court-martial may direct.
What I posted is the current version of the article and the previous version which matches what you posted.