From e82ae20f7f719edf7034638719c94c8e6031a185 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 13 Mar 2016 22:37:30 +0100 Subject: [PATCH] doc: fix typo in api/dgram MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: #5678 Reviewed-By: zkat - Kat Marchán Reviewed-By: evanlucas - Evan Lucas Reviewed-By: thefourtheye - Sakthipriyan Vairamani --- doc/api/dgram.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/dgram.markdown b/doc/api/dgram.markdown index 8d6de8d7f4b05d..1bb5155578d6cf 100644 --- a/doc/api/dgram.markdown +++ b/doc/api/dgram.markdown @@ -197,12 +197,12 @@ drop membership on all valid interfaces. Broadcasts a datagram on the socket. The destination `port` and `address` must be specified. -The `msg` argument containins the message to be sent. +The `msg` argument contains the message to be sent. Depending on its type, different behavior can apply. If `msg` is a `Buffer`, the `offset` and `length` specify the offset within the `Buffer` where the message begins and the number of bytes in the message, respectively. If `msg` is a `String`, then it is automatically converted to a `Buffer` -with `'utf8'` enecoding. With messages that +with `'utf8'` encoding. With messages that contain multi-byte characters, `offset` and `length` will be calculated with respect to [byte length][] and not the character position. If `msg` is an array, `offset` and `length` must not be specified.