Skip to content

Commit 6997622

Browse files
committed
docs: update readme.md
1 parent ddf9764 commit 6997622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ To create a C struct or get a C struct as a return type, you need to define the
538538

539539
`ffi-rs` provides a C struct named `Person` with many types of fields in [sum.cpp](./cpp/sum.cpp#L48)
540540

541-
The example call method about how to call a foreign function to create a `Person` struct or use `Person` struct as a return value is [here](./test.ts#L289)
541+
The example call method about how to call a foreign function to create a `Person` struct or use `Person` struct as a return value is [here](./tests/struct.ts#L27)
542542

543543
#### Use array in struct
544544

@@ -769,7 +769,7 @@ If you set freeResultMemory to false, `ffi-rs` will not release the return resul
769769

770770
* Use `DataType.External` as paramsType or retType
771771

772-
If developers use `DataType.External` as paramsType or retType, please use `freePointer` to release the memory of the pointer when this memory is no longer in use. ref [test.ts](./test.ts#L170)
772+
If developers use `DataType.External` as paramsType or retType, please use `freePointer` to release the memory of the pointer when this memory is no longer in use. ref [tests/index.ts](./tests/index.ts#L212)
773773

774774
## runInNewThread
775775

0 commit comments

Comments
 (0)