Fix InternetAddress.fromRawAddress unix socket documentation.

`InternetAddressType.unix` is the one that should be encoded as a valid
UTF-8 encoded file path, not `InternetAddressType.IPv4`.

Closes https://github.com/dart-lang/sdk/pull/44517
https://github.com/dart-lang/sdk/pull/44517

GitOrigin-RevId: e89eb88ef1732fcc9011ecaf8e18da409d692eaa
Change-Id: Id4ff25921c9c9e0999f44ea90332a7d7cce5d628
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176620
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
suragch 2021-01-05 13:53:28 +00:00 committed by commit-bot@chromium.org
parent cfe73b7fce
commit 76114063f3

View file

@ -172,7 +172,7 @@ abstract class InternetAddress {
* length 4.
* If the [type] is [InternetAddressType.IPv6], the [rawAddress] must have
* length 16.
* If the [type] is [InternetAddressType.IPv4], the [rawAddress] must be a
* If the [type] is [InternetAddressType.unix], the [rawAddress] must be a
* valid UTF-8 encoded file path.
*
* If [type] is omitted, the [rawAddress] must have a length of either 4 or