Can't make continuous rotation?

Hi, I was wondering how I can fix my code, I want my object to spin continuously, but it spins only a little ways before stopping. How can I fix it?

#pragma strict

function Start() {

}

function Update() {
	transform.rotation.z += 5.0;
}

Transform.rotation is a Quaterion, not a Vector3. As such affecting one of the components (x, y, z, w) will not produce smooth rotation. Touching the quaternion values directly is only recommended if you have a PhD in mathematics. Instead use Transform.rotation.EulerAngles