Bug in EthernetClient Library connect() function example

The documentation under https://www.arduino.cc/en/Reference/ClientConnect says the function connect() returns one if the connection was successful established and a value lower then zero if the connection failed. The examples in the documentation differs these cases with

if (client.connect(server, 80)) {
//success
}else{
//fail
}

So if the connection fails, the code will fall in the true case yet. The code should be

if (client.connect(server, 80) == 1) {
//success
}else{
//fail
}

to work as expected.

(deleted)

Any non-zero number is considered a Boolean true, since connect() can return negative number error codes for failure there certainly is an operational difference.

The documentation is also incomplete because there are multiple conditions that can cause the function to return 0 on failure but that is not listed as one of the possible return values.

(deleted)