From 9ef797b8d5c4d9c907eb7942b086653c0c9fa057 Mon Sep 17 00:00:00 2001 From: Jacques Supcik Date: Tue, 21 Mar 2023 23:53:41 +0100 Subject: [PATCH] fix return value of getBytes --- docs/source/api/preferences.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/api/preferences.rst b/docs/source/api/preferences.rst index 86268cfc507..33fb2b6042e 100644 --- a/docs/source/api/preferences.rst +++ b/docs/source/api/preferences.rst @@ -578,7 +578,7 @@ Copy a series of bytes stored against a given key in the currently open namespac - the number of bytes to be written to the buffer pointed to by ``buf`` **Returns** - * if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``1``. + * if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``len``. * if the method fails, nothing is written to the buffer and the method returns ``0``. **Notes** @@ -698,4 +698,4 @@ Get the number of free entries available in the key table of the currently open * A message providing the reason for a failed call is sent to the arduino-esp32 ``log_e`` facility. -.. --- EOF ---- \ No newline at end of file +.. --- EOF ----