setting the tag of all gameObjects in an array

my code at the moment

`var finishedWaypoints: GameObject = GameObject.FindGameObjectsWithTag(“Finish”);

//…after some events i want all game objects within this array to have the tag “waypoint”

finishedWaypoints.tag=“waypoint”;

`
obviously i know the line of code above does not work, need help
Thanks

for(var curWayPoint in finishedWaypoints)
{
curWayPoint.tag = “waypoint”;
}

There you go! For loops are wonderful.