summaryrefslogtreecommitdiff
path: root/doc/api.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api.rst')
-rw-r--r--doc/api.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/api.rst b/doc/api.rst
index a43de17f..0a00947e 100644
--- a/doc/api.rst
+++ b/doc/api.rst
@@ -9,16 +9,17 @@ Coverage API
:history: 20100221T151500, docs for 3.3 (on the plane back from PyCon)
:history: 20100725T211700, updated for 3.4.
:history: 20121111T235800, added a bit of clarification.
+:history: 20140819T132600, change class name to Coverage
The API to coverage.py is very simple, contained in a single module called
-`coverage`. Most of the interface is in a single class, also called
-`coverage`. Methods on the coverage object correspond roughly to operations
+`coverage`. Most of the interface is in a single class, called
+`Coverage`. Methods on the Coverage object correspond roughly to operations
available in the command line interface. For example, a simple use would be::
import coverage
- cov = coverage.coverage()
+ cov = coverage.Coverage()
cov.start()
# .. call your code ..
@@ -34,7 +35,7 @@ The coverage module
.. module:: coverage
-.. autoclass:: coverage
+.. autoclass:: Coverage
:members: