api/documentation: Add a warning that nil may mean v:null

This commit is contained in:
ZyX
2016-02-21 05:17:20 +03:00
parent 2f67786796
commit 7cdd01983a
4 changed files with 16 additions and 4 deletions

View File

@@ -429,7 +429,10 @@ Object buffer_get_var(Buffer buffer, String name, Error *err)
/// @param name The variable name
/// @param value The variable value
/// @param[out] err Details of an error that may have occurred
/// @return The old value
/// @return The old value or nil if there was no previous value.
///
/// @warning It may return nil if there was no previous value
/// or if previous value was `v:null`.
Object buffer_set_var(Buffer buffer, String name, Object value, Error *err)
{
buf_T *buf = find_buffer_by_handle(buffer, err);