Hello, I want to factor the following:

1-(1/y^2)

I thought that this would be the correct answer:

1/y * (y-(1/y))

however my textbook says that this is correct:

(1-1/y) (1+1/y)

Can someone please tell me if my answer is just another way of how they did it in the second example, or am I wrong ?

Thanks