First off, something everyone should already know but it's important so I'll lead with it anyways: plagiarism is wrong. If a bit of something from elsewhere is used in Docs, giving a citation is good manners and the right thing to do.
With that out of the way, hopefully we don't see this coming up very often. The purpose of Documentation on SO is not to be a place for people to copy-paste the official (or, for that matter, unofficial) documentation already being provided by Microsoft, Oracle, Google, Mozilla, &c. We're trying to build a different kind of resource.
Traditional documentation was written from a product perspective: some developer or team somewhere works hard, writes up a method or library or other thing, and then needs to explain it. Docs here will hopefully be written from a need-based perspective: you need to flux a widget, but the official documentation for ThirdPartyLib.fluxWidgetHelper(Widget w, Int otherArg, Sprocket s) throws OneException, AnotherException, AllTheExceptions
just says
takes Widget w and fluxes it
so you put up a request here. Then people who remember how rough it was learning how to flux widgets (maybe they had to ask on SO a few years ago?) but totally grok it now can write up something better.
How, then, will we ensure that the examples on Docs are good? The same way we "ensure" that Q&A answers are good: community voting and editing. If anything, I suspect editing will play an even bigger role here than it does with Q&A.