doc: fix types and description for dns.resolveTxt · nodejs/node@37b9372
@@ -193,7 +193,7 @@ records. The type and structure of individual results varies based on `rrtype`:
193193| `'PTR'` | pointer records | {string} | [`dns.resolvePtr()`][] |
194194| `'SOA'` | start of authority records | {Object} | [`dns.resolveSoa()`][] |
195195| `'SRV'` | service records | {Object} | [`dns.resolveSrv()`][] |
196-| `'TXT'` | text records | {string} | [`dns.resolveTxt()`][] |
196+| `'TXT'` | text records | {string[]} | [`dns.resolveTxt()`][] |
197197198198On error, `err` is an [`Error`][] object, where `err.code` is one of the
199199[DNS error codes](#dns_error_codes).
@@ -359,10 +359,14 @@ be an array of strings containing the reply records.
359359<!-- YAML
360360added: v0.1.27
361361-->
362+- `hostname` {string}
363+- `callback` {Function}
364+- `err` {Error}
365+- `records` {string[][]}
362366363367Uses the DNS protocol to resolve text queries (`TXT` records) for the
364-`hostname`. The `addresses` argument passed to the `callback` function is
365-is a two-dimensional array of the text records available for `hostname` (e.g.,
368+`hostname`. The `records` argument passed to the `callback` function is a
369+two-dimensional array of the text records available for `hostname` (e.g.,
366370`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
367371one record. Depending on the use case, these could be either joined together or
368372treated separately.