diff --git a/docs/library/pyb.ExtInt.rst b/docs/library/pyb.ExtInt.rst index 8344a14c2e..89db62e464 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 c5e91e0b16..50d52eff34 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.