]> git.lizzy.rs Git - rust.git/commitdiff
corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478
authorryan <ryanswilson@protonmail.com>
Mon, 9 Dec 2019 02:09:36 +0000 (18:09 -0800)
committerryan <ryanswilson@protonmail.com>
Mon, 9 Dec 2019 02:09:36 +0000 (18:09 -0800)
src/librustc_error_codes/error_codes/E0478.md

index 6634d9b6e63b418f572621b03ad39cae3d6f5eab..ad20e77ea9bafe8ad90f609a06383ca3f908c8eb 100644 (file)
@@ -21,8 +21,8 @@ this issue, you need to specify it:
 ```
 trait Wedding<'t>: 't { }
 
-struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'kiss must live
-                                          // longer than 'SnowWhite.
+struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite must live
+                                          // longer than 'kiss.
     child: Box<Wedding<'kiss> + 'SnowWhite>, // And now it's all good!
 }
 ```