On the ArcGIS Pro documentation page Table—ArcPy | ArcGIS for Desktop
the sample code near the bottom contains 2 issues
1/
If you simply copy and paste this line of code to create a table object
addTab = arcpy.mp.Table(r"C:\Projects\YosemiteNP\Data_Vector\YosemiteData.gdb\NHDFCode")
and just run it in a script tool, but that file does not exist, Pro will become unresponsive enough to make you to force close the application.
2/
This code following above
m.addTableView(addTab)
does not work. The method in in Pro arcpy.mp is addTable(), not addTableView().
PS This is not a question but seems like question-discussion posts gets more attention.
at the bottom right of the page within the helpfile is a Feedback link .... click on it and reply there ... that will get the real attention of those that deal with the help pages. I can assure you that responding here is a great idea, but you must report it or nothing will be done. The producers of the documentation do not troll GeoNet I can assure you looking for bugs and or enhancement requests.
Kudos on noteing it... but please do report it