diff --git a/docs/library/pyb.ExtInt.rst b/docs/library/pyb.ExtInt.rst
index 8344a14c2eadbeea54891bd55477a2420ac811fa..89db62e46402f4c6c0b1ce42e91c455e10861f18 100644
--- a/docs/library/pyb.ExtInt.rst
+++ b/docs/library/pyb.ExtInt.rst
@@ -72,7 +72,7 @@ Constructors
 Class methods
 -------------
 
-.. method:: ExtInt.regs()
+.. classmethod:: ExtInt.regs()
 
    Dump the values of the EXTI registers.
 
diff --git a/docs/library/pyb.Pin.rst b/docs/library/pyb.Pin.rst
index c5e91e0b161ec472e416d0d27f1f61b1dbebf5af..50d52eff347d001fef706480b0a2bd35b450f5c1 100644
--- a/docs/library/pyb.Pin.rst
+++ b/docs/library/pyb.Pin.rst
@@ -86,15 +86,15 @@ Constructors
     Class methods
     -------------
 
-    .. method:: Pin.debug([state])
+    .. classmethod:: Pin.debug([state])
     
        Get or set the debugging state (``True`` or ``False`` for on or off).
     
-    .. method:: Pin.dict([dict])
+    .. classmethod:: Pin.dict([dict])
     
        Get or set the pin mapper dictionary.
     
-    .. method:: Pin.mapper([fun])
+    .. classmethod:: Pin.mapper([fun])
     
        Get or set the pin mapper function.