Both, they aren't talking about the same lock.
A write operation refers to an individual row, and its lock. The range operation refers to a collection of rows, and its lock (which is typically a lock on the entire table).
That is, the statement
update Employee set category = "permanent" where id =1
would acquire a table lock for the duration of the statement, and lock the updated row(s) for the duration of the transaction.