mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:51:18 +00:00
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:
parent
cfe73b7fce
commit
76114063f3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue