Hi Mikep,
Depending on the location (bathroom, kitchen, laundry, etc.) restrictions may vary slightly but it is the maximum distance within which you might need to install GFCI outlet / doesn’t matter how close but not further than “x”). There are of course areas like within the shower stall where there should be no electrical outlet receptacles at all.
Check the link above and let me know if you have more questions – click “comment” below my answer (make sure to provide more details about your installation).