Fix typo in deprecation warning
Merge pull request #8842 from nthj/patch-1

Fix typo in deprecation warning