fixing typos in optparse doc
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 7d2d91b..add582e 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -607,8 +607,8 @@
 
        -g                  Group option.
 
-A bit more complete example might invole using more than one group: still
-extendind the previous example::
+A bit more complete example might involve using more than one group: still
+extending the previous example::
 
     group = OptionGroup(parser, "Dangerous Options",
                         "Caution: use these options at your own risk.  "