You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for SetFinalizer uses named variables obj and finalizer in the method signature, but refers to x and f in the documentation comment. This makes it harder to read, since the doc refers to hypothetical variables rather than the ones used by the function.
Additionally, later down in the comment obj:
It is not guaranteed that a finalizer will run if the size of *obj is zero bytes.
I believe this already tricky method would be easier to understand if the doc used consistent terminology.
The text was updated successfully, but these errors were encountered:
The documentation for SetFinalizer uses named variables
obj
andfinalizer
in the method signature, but refers tox
andf
in the documentation comment. This makes it harder to read, since the doc refers to hypothetical variables rather than the ones used by the function.Additionally, later down in the comment
obj
:I believe this already tricky method would be easier to understand if the doc used consistent terminology.
The text was updated successfully, but these errors were encountered: