My question is, which ones are more up to date and which ones are the obsolete pages?
For the first one the reference page is correct. We’ll fix the tutorial example.
The second one both are correct. One is wrapped in a
pcall for error handling and the other overrides some default arguments, but at a glance both are valid.