Custom posts

I’m new to Wordpress and DH and I am trying to create custom posts in my child theme. The parent theme is twentyeleven.

I am following the steps in this presentation

I get to slide 18 & 19, but rather than getting a new button on my dashboard - the contents of my functions.php file are printed out above the dashboard.

I’ve removed the file but this is the content:
add action( ‘init’, ‘quack init’ );
function quack init() {
register post type( ‘snippete’, array(
‘public’ => true,
‘label’ => ‘Snippetes’,
) );
I’ve tried some other approaches but get worse errors - could someone please steer me in the right direction?