error CS1022: Type or namespace definition, or end-of-file expected

I am fairly new to coding so don’t judge me too harshly for not understanding this!

I am in the middle of attempting to make a 2d sprite game, and ran in to this error:
error CS1022: Type or namespace definition, or end-of-file expected

I don’t know what this means or how to fix it, any help is appreciated, here is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerScript : MonoBehaviour {

private Rigidbody2D myRigidbody;

public float movementSpeed;

private bool facingRight;

// Start is called before the first frame update
void Start()
{
myRigidbody = GetComponent ();
facingRight = true;
}

// Update is called once per frame
void Update(){

}

void FixedUpdate(){
float horizontal = Input.GetAxis (“Horizontal”);
Debug.Log (horizontal);
}
private void HandleMovment(float horizontal){
myRigidbody.velocity = new Vector2(horizontal * movementSpeed,myRigidbody.velocity.y);
}

}
}

Looks like you have too many braces, line them up and you’ll see one } too many.

1 Like