In a buck-converter with a diode, in the first and second phases (on and of states) current is supposed to flow like the following circuits:
[![enter image description here](https://i.stack.imgur.com/v06wM.png)](https://i.stack.imgur.com/v06wM.png)

I am looking for a way to replace the diode with a MOSFET and after a few search I came by the following design:
[![enter image description here](https://i.stack.imgur.com/W7Qwj.jpg)](https://i.stack.imgur.com/W7Qwj.jpg)

My question is this:
considering the polarity of the N-channel MOSFET, Shouldn't the direction of the MOSFET be like the following circuit instead?

[![enter image description here](https://i.stack.imgur.com/7MqEW.jpg)](https://i.stack.imgur.com/7MqEW.jpg)