From 40cc746f5c033acd280c7cc82ca2184767972c4f Mon Sep 17 00:00:00 2001 From: TheQuinbox Date: Mon, 22 Jul 2024 08:18:02 -0600 Subject: [PATCH] Fixed return type of network::connect in the docs. --- .../builtin/Networking/classes/network/methods/connect.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/references/builtin/Networking/classes/network/methods/connect.md b/doc/src/references/builtin/Networking/classes/network/methods/connect.md index 98627de4..88968f53 100644 --- a/doc/src/references/builtin/Networking/classes/network/methods/connect.md +++ b/doc/src/references/builtin/Networking/classes/network/methods/connect.md @@ -1,11 +1,11 @@ # connect Attempt to establish a connection with a server, only works when set up as a client. -`bool network::connect(string hostname, uint16 port);` +`uint64 network::connect(string hostname, uint16 port);` ## Arguments: * string hostname: the hostname/IP address to connect to. * uint16 port: the port to use. ## Returns: -bool: true if the connection was successful, false otherwise. +uint64: the peer ID of the connection, or 0 on error.