'Solidity Syntax error with changing mint rate uint

I am new to solidity, and am wondering why this isn't working.

//Mint Price
uint256 public mintRate = 0.025 ether;

function changeMintRate(uint256 _mintRate) public onlyOwner{
        uint256 public mintRate = _mintRate ether;
    }

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source