From 8eb67404f00c789fc5e8ef723105be2b0aff85cd Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sat, 10 May 2014 22:31:18 -0300 Subject: API: Refactor buffer_{get,set}_line They are now implemented on top of the buffer_{get,set}_slice functions --- src/api/buffer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/api/buffer.h') diff --git a/src/api/buffer.h b/src/api/buffer.h index 49379e3bc9..17ba9ead94 100644 --- a/src/api/buffer.h +++ b/src/api/buffer.h @@ -25,10 +25,9 @@ String buffer_get_line(Buffer buffer, int64_t index, Error *err); /// /// @param buffer The buffer handle /// @param index The line index -/// @param line The new line. This can can be a String(replacement) or -/// Nil(delete). Anything else is an error. +/// @param line The new line. /// @param[out] err Details of an error that may have occurred -void buffer_set_line(Buffer buffer, int64_t index, Object line, Error *err); +void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err); /// Retrieves a line range from the buffer /// -- cgit