Finding the equation of a straight line...is this right?

Find the equation of a straight line having the gradient given and passing through the point listed. Express your answer in the form i) ax + by + c= 0 and ii) y= mx + c.

(3,-2) gradient= -1

y --2 = -1(x -3)

y + 2 = -x + 3 y + 2= -x + 3

ii) y = -x + 1 i) -x - y + 1 = 0

Is this right so far? Because in my textbook it says for i) x + y -1 = 0 instead of what I did. It also shows a few other different answers to what I did with some of my other questions.

Thanks!