Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
0
Description
The documentation:
https://docs.couchbase.com/couchbase-lite/3.2/c/c_fleece.html#immutable-2
In code snippet:
int count = FLArray_Count(myArray); |
if (count > 0) { |
FLValue value = FLArray_Get(0); |
doSomethingWith(value);
|
}
|
The line:
FLValue value = FLArray_Get(0); |
Should be:
FLValue value = FLArray_Get(myArray, 0); |