A note on the AlB2 type structure