Well I believe you're thinking of the comparison between C=C and C≡C and with that, yes, your triple bond is shorter since we're comparing the bonds between identical atoms in both the double bond and triple bond structures. However, when comparing C≡C with C--H, we have two different atoms in the two structures and therefore you must look at the size of the atoms. Basically what I'm trying to say is (1) examine the size of the atoms and if they're the same size (hence the same atom) then move on to (2) compare the length between single, double, and triple bonds. Hope this helps.