sed - print lines ending with either one char or other char

With either 'h' or 'n':

sed -n '/h$\|n$/p' /etc/passwd
This could be also written as:
sed -n '/[hn]$/p' /etc/passwd