Solved syntax error in my rc.conf, rescue shell not helping

I made a syntax error in my rc.conf and freebsd won't boot.
I tried to use rescue/sh to repair it but it will not let me write to the file
I am sorry for being dumb and not googling this before posting it. The FreeBSD wiki has helped me solve my issue please close my thread thanks