Merge pull request #337 from william-silversmith/master

docs: show how to use retry_if_not_exception_type
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f8ee2e7..8952528 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -210,6 +210,11 @@
         print("Retry forever with no wait if an IOError occurs, raise any other errors")
         raise Exception
 
+    @retry(retry=retry_if_not_exception_type(ClientError))
+    def might_client_error():
+        print("Retry forever with no wait if any error other than ClientError occurs. Immediately raise ClientError.")
+        raise Exception
+
 We can also use the result of the function to alter the behavior of retrying.
 
 .. testcode::