Remove unnecessary main
functions in doc examples.
#35482
Merged
main
functions in doc examples.
#35482