From 4b25d7528bf6353fc56315683fce580ae1d360a9 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Fri, 13 Feb 2015 09:21:38 -0500 Subject: [PATCH] Remove outdated information about copy/move from the reference Fixes #22136 --- src/doc/reference.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index 9c51f6bad6fee..5317de0e8784d 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2591,9 +2591,8 @@ of any reference that points to it. When a [local variable](#memory-slots) is used as an [rvalue](#lvalues,-rvalues-and-temporaries) the variable will either be moved -or copied, depending on its type. For types that contain [owning -pointers](#pointer-types) or values that implement the special trait `Drop`, -the variable is moved. All other types are copied. +or copied, depending on its type. All values whose type implements `Copy` are +copied, all others are moved. ### Literal expressions