about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-29 02:33:21 +0200
committerGitHub <noreply@github.com>2020-05-29 02:33:21 +0200
commit0204fc38d228ace4e33f63431841565ceac3b244 (patch)
treef42d2ada669d02bbec011642f758b75c1ba8e3e4 /src/test/ui
parent733bee599ced7ea976f572626135e7ab5f8283a5 (diff)
parent1ab0db1272671a83ef3e27cdb88780f9dd6b2345 (diff)
downloadrust-0204fc38d228ace4e33f63431841565ceac3b244.tar.gz
rust-0204fc38d228ace4e33f63431841565ceac3b244.zip
Rollup merge of #72670 - rust-lang:jonas-schievink-patch-1, r=nikomatsakis
Fix incorrect comment in generator test

https://github.com/rust-lang/rust/pull/69837#discussion_r431141825 (thanks for the catch, @jplatte)
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/generator/resume-arg-size.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/generator/resume-arg-size.rs b/src/test/ui/generator/resume-arg-size.rs
index 4f08ac0702b..b93dc54f7a9 100644
--- a/src/test/ui/generator/resume-arg-size.rs
+++ b/src/test/ui/generator/resume-arg-size.rs
@@ -22,7 +22,7 @@ fn main() {
     };
 
     // Neither of these generators have the resume arg live across the `yield`, so they should be
-    // 4 Bytes in size (only storing the discriminant)
+    // 1 Byte in size (only storing the discriminant)
     assert_eq!(size_of_val(&gen_copy), 1);
     assert_eq!(size_of_val(&gen_move), 1);
 }