fixes inconsistent bar/baz variable name in state module example
Merge pull request #16310 from jodv/fix-inconsistent-example-variable

fixes inconsistent bar/baz variable name in state module example