Chemistry: Molecular Approach (4th Edition)

$HCN$ has a linear molecular geometry
$HCN$ has two electron groups - a single bond and a triple bond. So, it has a linear geometry.