Merge pull request #1114 from alex/fixed-markup
This is a function, not a method
diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst
index 3773e0a..2c91b5a 100644
--- a/docs/hazmat/primitives/asymmetric/ec.rst
+++ b/docs/hazmat/primitives/asymmetric/ec.rst
@@ -6,7 +6,7 @@
.. currentmodule:: cryptography.hazmat.primitives.asymmetric.ec
-.. method:: generate_private_key(curve, backend):
+.. function:: generate_private_key(curve, backend):
.. versionadded:: 0.5