spelling: necessary

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2022-10-09 06:57:18 -04:00
parent 4e220330a7
commit 22141e378e

View File

@@ -62,7 +62,7 @@ runtime.
<p> <p>
The code above should be rewritten to both use <code>volatile</code> and finish The code above should be rewritten to both use <code>volatile</code> and finish
all initialization before <code>f</code> is updated. Additionally, a local all initialization before <code>f</code> is updated. Additionally, a local
variable can be used to avoid reading the field more times than neccessary. variable can be used to avoid reading the field more times than necessary.
</p> </p>
<sample src="DoubleCheckedLockingGood.java"/> <sample src="DoubleCheckedLockingGood.java"/>