Update hostname_pattern.rst

Error in xml
minor #3872 Update hostname_pattern.rst (sofany)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3872).

Discussion
----------

Update hostname_pattern.rst

Error in xml

Commits
-------

1baf2db Update hostname_pattern.rst
Fixing comment typo for Doctrine findBy and findOneBy code example