} expected Type or namespace definition, or end-of-file expected, Basic Clicker

I’m making a basic clicker game to practice my skills in Unity and I’ve came across an error in mt script and I’m not sure what is causing it, my brackets do seem fine though. If you know whats wrong please answer, I feel it’s such a simple thing I’m missing.

using UnityEngine;
using System.Collections;

public class BtnMng : MonoBehaviour {

	public UnityEngine.UI.Text MoneyDisplay;
	public int money = 0;
	public int moneyeachclick = 1;
	public int moneypersecond = 0;

	// Update is called once per frame
	void Update () {
		MoneyDisplay.text = "Money: " + money;

		public void Click() {
			money = money + moneyeachclick;
		}
	}
}

Your Update() method seems to missing a curly brace.

 public class BtnMng : MonoBehaviour {
 
     public UnityEngine.UI.Text MoneyDisplay;
     public int money = 0;
     public int moneyeachclick = 1;
     public int moneypersecond = 0;
 
     // Update is called once per frame
     void Update () {
         MoneyDisplay.text = "Money: " + money;
         }
         public void Click() {
             money = money + moneyeachclick;
         }
 }

Your code should look like that.