What is difference between inverter and buffer?

if you connect Nmos and Pmos other way around then it act as buffer