1
Fork 0

Fix typo with custom a custom -> with a custom

This commit is contained in:
Shadlock0133 2021-06-13 21:21:45 +02:00 committed by GitHub
parent fb3ea63d9b
commit dab89b51ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ static FOO: Foo = Foo { field1: (DropType::A, DropType::A).1 }; // error!
The problem here is that if the given type or one of its fields implements the The problem here is that if the given type or one of its fields implements the
`Drop` trait, this `Drop` implementation cannot be called within a const `Drop` trait, this `Drop` implementation cannot be called within a const
context since it may run arbitrary, non-const-checked code. To prevent this context since it may run arbitrary, non-const-checked code. To prevent this
issue, ensure all values with custom a custom `Drop` implementation escape the issue, ensure all values with a custom `Drop` implementation escape the
initializer. initializer.
``` ```