Update writing.rst

Fixed Code