Is there anything wrong with line of coding? Unity gives me an error.

Unity tells me that at (9,12) and (12,12) there are “Unexpected symbol ‘void’ in class, struct, or interface member declaration” How do I fix this?

using UnityEngine;
using System.Collections;


public class Movement2D : MonoBehaviour {
	
	public float movementSpeed = 5.0f
		
	void Start () {
		
}
	
	
	void Update () {
		if (Input.GetKey("left") || Input.GetKey("a")) {
			transform.position -= Vector3.right * movementSpeed * Time.deltaTime;
		if (Input.GetKey("right") || Input.GetKey("d")) {
			transform.position += Vector3.right * movementSpeed * Time.deltaTime;
		}
}
	}

You’re missing a semi-colon to terminate the declaration and initialization of the movementSpeed field in your Movement2D class.

using UnityEngine;
using System.Collections;
 
public class Movement2D : MonoBehaviour {
     
    public float movementSpeed = 5.0f; // missing semi-colon
         
    void Start () {
	}
          
    void Update () {
        if (Input.GetKey("left") || Input.GetKey("a")) {
			transform.position -= Vector3.right * movementSpeed * Time.deltaTime;
		}
         
		if (Input.GetKey("right") || Input.GetKey("d")) {
			transform.position += Vector3.right * movementSpeed * Time.deltaTime;
		}
	}
}

Your if statements were all little wonky as well, i adjusted the blocks(curly braces)