To tell the difference in documentation the different sections would be marked as (1), (2) etc..

So stat(1) refers to stat in section 1 and stat(2) the one in section 2.

"man man" for more...