Fixes #2873: Change doc source to point to the correct #include for the beta function and regenerate the docs.