Fix the docs

This commit is contained in:
Scott Shawcroft 2022-03-18 14:56:20 -07:00
parent 6f0d62d85e
commit 543940e0a7
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
3 changed files with 9 additions and 9 deletions

View File

@ -33,12 +33,12 @@
#include "shared-bindings/mdns/RemoteService.h" #include "shared-bindings/mdns/RemoteService.h"
//| class RemoteService: //| class RemoteService:
//| """Encapsulates information about a remote service that was found during a query. This //| """Encapsulates information about a remote service that was found during a search. This
//| object may only be created by a `mdns.Server`. It has no user-visible constructor.""" //| object may only be created by a `mdns.Server`. It has no user-visible constructor."""
//| //|
//| def __init__(self) -> None: //| def __init__(self) -> None:
//| """Cannot be instantiated directly. Use `mdns.Server.query`.""" //| """Cannot be instantiated directly. Use `mdns.Server.find`."""
//| ... //| ...
//| //|

View File

@ -135,7 +135,7 @@ const mp_obj_property_t mdns_server_instance_name_obj = {
//| """Find all locally available remote services with the given service type and protocol. //| """Find all locally available remote services with the given service type and protocol.
//| //|
//| This doesn't allow for direct hostname lookup. To do that, use //| This doesn't allow for direct hostname lookup. To do that, use
//| `socketpool.SocketPool.getaddrinfo()` //| `socketpool.SocketPool.getaddrinfo()`.
//| //|
//| :param str service_type: The service type such as "_http" //| :param str service_type: The service type such as "_http"
//| :param str protocol: The service protocol such as "_tcp" //| :param str protocol: The service protocol such as "_tcp"