From af96447016a5a3811e703685bc4d46ecdbbcc032 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 13 Apr 2011 01:26:57 -0700 Subject: [PATCH] Modify text about buffer.write and partial chars Fixes GH-913. --- doc/api/buffers.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffers.markdown b/doc/api/buffers.markdown index ab746e4e17c..6438d672112 100644 --- a/doc/api/buffers.markdown +++ b/doc/api/buffers.markdown @@ -46,8 +46,8 @@ Allocates a new buffer containing the given `str`. Writes `string` to the buffer at `offset` using the given encoding. Returns number of octets written. If `buffer` did not contain enough space to fit -the entire string, it will write a partial amount of the string. In the case -of `'utf8'` encoding, the method will not write partial characters. +the entire string, it will write a partial amount of the string. +The method will not write partial characters. Example: write a utf8 string into a buffer, then print it