Show taxonomies from specific CPT

I found my own answer. Not sure why this different code works, but it does:

            <h4>Skills</h4>
            <?php
                $terms = wp_get_post_terms($post->ID, 'skill');
                $count = count($terms);
                if ( $count > 0 ) {
                foreach ( $terms as $term ) {
                echo '~ ' . $term->name . "<br /> ";
                }
            }
        ?>