SemiColon At The End,Expecting Found /N? Help!

I got 2 errors that says expected insert a semicolon at the end and expecting found /n. Help Please!

#pragma strict

var TheDamage : int 50;
var Distance : float;

Function Uptade () '
{
  if (Input.GetMouseButtonDown("Fire1"))
  {
   var hit : RaycastHit;
   if (Physics.Raycast Transform.position, Transform.TransformDirection(Vector3.forward), hit))
    {
      Distance = hit.distance;
      hit.transform.SendMessage("ApplyDamage"), TheDamage, SendMessageOptions.DontRequireReceiver);
      }
   }
}

var TheDamage : int = 50; ← you need the equal sign

Change function Uptade() to function Update(), and you have a quotation mark at the end of that line that you need to remove.

Good luck!