From 94010c974bcabfa20bddf219fec043572a697909 Mon Sep 17 00:00:00 2001 From: Denys Shabalin Date: Thu, 18 May 2017 12:54:45 +0200 Subject: [PATCH] Fix #719 (#723) --- docs/user/interop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/interop.rst b/docs/user/interop.rst index 00a8142d354..02ede3d7f4c 100644 --- a/docs/user/interop.rst +++ b/docs/user/interop.rst @@ -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.