RAII: Grammar correction (#324)

This commit is contained in:
amab8901 2022-10-23 15:35:47 +02:00 committed by GitHub
parent d75346d5a2
commit 24fd4e2daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
[RAII][wikipedia] stands for "Resource Acquisition is Initialisation" which is a
terrible name. The essence of the pattern is that resource initialisation is done
in the constructor of an object and finalisation in the destructor. This pattern
is extended in Rust by using an RAII object as a guard of some resource and relying
is extended in Rust by using a RAII object as a guard of some resource and relying
on the type system to ensure that access is always mediated by the guard object.
## Example