a few docs fixes and language improvements (#4472)
diff --git a/docs/x509/ocsp.rst b/docs/x509/ocsp.rst
index 163a6a8..14d9bb8 100644
--- a/docs/x509/ocsp.rst
+++ b/docs/x509/ocsp.rst
@@ -178,8 +178,7 @@
.. attribute:: hash_algorithm
- :type: An instance of a
- :class:`~cryptography.hazmat.primitives.hashes.Hash`
+ :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
The algorithm used to generate the ``issuer_key_hash`` and
``issuer_name_hash``.
@@ -358,8 +357,7 @@
.. attribute:: hash_algorithm
- :type: An instance of a
- :class:`~cryptography.hazmat.primitives.hashes.Hash`
+ :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
The algorithm used to generate the ``issuer_key_hash`` and
``issuer_name_hash``.
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index 079fef9..8330b2a 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -1371,7 +1371,7 @@
.. attribute:: value
- :type: `bytes`
+ :type: bytes
X.509 Extensions
~~~~~~~~~~~~~~~~
@@ -2261,7 +2261,7 @@
.. attribute:: value
- :type: byte
+ :type: bytes
Returns the DER encoded bytes payload of the extension.