The picture below shows a cross-section of a standard tuner through the eyelet.
The string is pulled tight and wrapped around the spindle as shown by the arrow
The free end is passed through the eyelet and hitched back against the opposite edge of the eyelet to create the important Z-lock which prevents the string from disengaging while it is being brought up to tension.