Fix spelling errors (#10717)
diff --git a/update_version.py b/update_version.py
index 0ab9cc0..cb9f4db 100755
--- a/update_version.py
+++ b/update_version.py
@@ -80,7 +80,7 @@
# document.toxml() always prepend the XML version without inserting new line.
# We wants to preserve as much of the original formatting as possible, so we
# will remove the default XML version and replace it with our custom one when
- # whever necessary.
+ # wherever necessary.
content = document.toxml().replace('<?xml version="1.0" ?>', '')
file_handle = open(filename, 'wb')
if add_xml_prefix: