should be:

````rst
Some sentence::

    public function ...
````

(note the double colons and the removed code-block directive)