Fix registered variable usage example
Merge pull request #2926 from stoned/doc-fix

Fix registered variable usage example