Nice Infinity Scarf Pattern but

It looks nice and sounds pretty simple, however the way she wrote the pattern confuses me.

Row 1: Sl 1 (slip stitch as if to purl), *K1, (yo, k2tog) twice; repeat from * end k1

what’s with the word twice? What am I repeating twice the stuff in the brackets? or just the K2tog or does she mean I do K1, (yo, K2tog) and repeat till the end of the row?

k1, yo, k2tog, yo k2tog…go back to k1 and repeat
HTH

Whenever you see directions in parentheses followed by “twice” you do what is in the parentheses twice. Of course if it said three times or a different number you do what is in the parentheses that many times.