Skip to content

Commit 35bb105

Browse files
BenPHjohanmon
authored andcommitted
doc: fix typos in calling-c-and-fortran-code.md (JuliaLang#40692)
1 parent 279f8c1 commit 35bb105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/manual/calling-c-and-fortran-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ This is why we don't use the `Cstring` type here: as the array is uninitialized,
157157
NUL bytes. Converting to a `Cstring` as part of the [`ccall`](@ref) checks for contained NUL bytes
158158
and could therefore throw a conversion error.
159159

160-
Deferencing `pointer(hostname)` with `unsafe_string` is an unsafe operation as it requires access to
160+
Dereferencing `pointer(hostname)` with `unsafe_string` is an unsafe operation as it requires access to
161161
the memory allocated for `hostname` that may have been in the meanwhile garbage collected. The macro
162162
[`GC.@preserve`](@ref) prevents this from happening and therefore accessing an invalid memory location.
163163

@@ -657,7 +657,7 @@ For translating a C argument list to Julia:
657657
* `Ref{Any}`
658658
* argument list must be a valid Julia object (or `C_NULL`)
659659
* cannot be used for an output parameter, unless the user is able to
660-
manage to separate arrange for the object to be GC-preserved
660+
separately arrange for the object to be GC-preserved
661661
* `T*`
662662

663663
* `Ref{T}`, where `T` is the Julia type corresponding to `T`

0 commit comments

Comments
 (0)