Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
densh authored and muxanick committed May 25, 2017
1 parent 3e5a141 commit 94010c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/interop.rst
Expand Up @@ -243,7 +243,7 @@ pointers and do not have a corresponding first-class values backing them.
val ptr = native.stackalloc[native.CStruct2[Int, Int]]
!ptr._1 = 10
!ptr._2 = 20
println(s"first ${!ptr_.1}, second ${!ptr._2}")
println(s"first ${!ptr._1}, second ${!ptr._2}")
Here ``_N`` computes a derived pointer that corresponds to memory
occupied by field number N.
Expand Down

0 comments on commit 94010c9

Please sign in to comment.