Skip to content

Commit 0c07593

Browse files
committed
Update README with the new functions names
1 parent 689883a commit 0c07593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ $ cargo test --features=enterprise
8585
Couchbase Lite C allows checking if instances of their objects are still alive through the functions `CBL_InstanceCount` & `CBL_DumpInstances`.
8686
If the `LEAK_CHECK` environment variable is set, we check that the number of instances at the end of each test is 0.
8787

88-
If this step fails in one of your pull requests, you should look into the `wrap`/`retain` logic on CBL pointers in the constructor of the Rust structs:
89-
- `wrap` takes ownership of the pointer, it will not increase the ref count of the `ref` CBL pointer so releasing it (in a `drop`) will destroy the pointer
90-
- `retain` just references the pointer, it will increase the ref count of CBL pointers so releasing it will not destroy the pointer
88+
If this step fails in one of your pull requests, you should look into the `take_ownership`/`reference` logic on CBL pointers in the constructor of the Rust structs:
89+
- `take_ownership` takes ownership of the pointer, it will not increase the ref count of the `ref` CBL pointer so releasing it (in a `drop` for example) will free the pointer
90+
- `reference` just references the pointer, it will increase the ref count of CBL pointers so releasing it will not free the pointer
9191

9292
```shell
9393
$ LEAK_CHECK=y cargo test --features=enterprise -- --test-threads 1

0 commit comments

Comments
 (0)