From eaa82b2856bb9f96da220ad1a51f86cd813ee392 Mon Sep 17 00:00:00 2001 From: Jerzy Spendel Date: Fri, 4 Mar 2022 16:24:49 +0100 Subject: [PATCH] Remove typying --- guide/src/memory.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/src/memory.md b/guide/src/memory.md index 137ed3c8d76..8d970c980a5 100644 --- a/guide/src/memory.md +++ b/guide/src/memory.md @@ -130,7 +130,7 @@ we are *not* holding the GIL? ```rust let hello: Py = Python::with_gil(|py| { - Py = py.eval("\"Hello World!\"", None, None)?.extract()) + py.eval("\"Hello World!\"", None, None)?.extract()) })?; // Do some stuff... // Now sometime later in the program we want to access `hello`. @@ -155,7 +155,7 @@ We can avoid the delay in releasing memory if we are careful to drop the ```rust let hello: Py = Python::with_gil(|py| { - Py = py.eval("\"Hello World!\"", None, None)?.extract()) + py.eval("\"Hello World!\"", None, None)?.extract()) })?; // Do some stuff... // Now sometime later in the program: @@ -173,7 +173,7 @@ until the GIL is dropped. ```rust let hello: Py = Python::with_gil(|py| { - Py = py.eval("\"Hello World!\"", None, None)?.extract()) + py.eval("\"Hello World!\"", None, None)?.extract()) })?; // Do some stuff... // Now sometime later in the program: