From 05c0e36749bd4ec311e8939d67a7936b910994c3 Mon Sep 17 00:00:00 2001 From: qixuan <58852732+GiveMe-A-Name@users.noreply.github.com> Date: Tue, 8 Mar 2022 11:52:56 +0800 Subject: [PATCH] Update pin-unpin.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这里笔者应该是想说test1 与 test2交换了内存,但他的裸指针还是指向原地址。 但是这里运行效果一个是 ```shell a: test2, b: test1 a: test1, b: test2 ``` --- src/async/pin-unpin.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async/pin-unpin.md b/src/async/pin-unpin.md index c2752f6b..5c4a6d2d 100644 --- a/src/async/pin-unpin.md +++ b/src/async/pin-unpin.md @@ -211,14 +211,14 @@ fn main() { 按理来说,这样修改后,输出应该如下: ```rust -a: test1, b: test1 +a: test2, b: test2 a: test1, b: test1 ``` 但是实际运行后,却产生了下面的输出: ```rust -a: test1, b: test1 +a: test2, b: test1 a: test1, b: test2 ```