fix a tiny formating issue in doc/destructors.rst (#19058)
This commit is contained in:
parent
f50bcf82c3
commit
ee65767d44
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ The ability to override a hook leads to a phase ordering problem:
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
|
||||||
The solution is to define `proc `=destroy`[T](f: var Foo[T])` before
|
The solution is to define ````proc `=destroy`[T](f: var Foo[T])```` before
|
||||||
it is used. The compiler generates implicit
|
it is used. The compiler generates implicit
|
||||||
hooks for all types in *strategic places* so that an explicitly provided
|
hooks for all types in *strategic places* so that an explicitly provided
|
||||||
hook that comes too "late" can be detected reliably. These *strategic places*
|
hook that comes too "late" can be detected reliably. These *strategic places*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue