mirror of
https://github.com/rust-unofficial/patterns
synced 2024-11-14 18:12:46 +00:00
RAII: Grammar correction (#324)
This commit is contained in:
parent
d75346d5a2
commit
24fd4e2daa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user