Documentation error for WiFiUDP.beginPacket()

The return value appears to be the number of bytes sent, not 1 for success.

beginPacket doesn't send anything.
in inplemtation of which library do you look?