diff --git a/docs/bugpattern/ThreadLocalUsage.md b/docs/bugpattern/ThreadLocalUsage.md index a73f1ef4c9f..9c315f6c24f 100644 --- a/docs/bugpattern/ThreadLocalUsage.md +++ b/docs/bugpattern/ThreadLocalUsage.md @@ -1,8 +1,8 @@ `ThreadLocal`s should be stored in `static` variables to avoid memory leaks. If -a `ThreadLocal` is stored in an instance (non-static) variable, there will be `M -* N` instances of the `ThreadLocal` value where `M` is the number of threads, -and `N` is the number of instances of the containing class. Each instance may -remain live as long the thread that stored it stays live. +a `ThreadLocal` is stored in an instance (non-static) variable, there will be +M \* N instances of the `ThreadLocal` value where `M` is the number +of threads, and `N` is the number of instances of the containing class. Each +instance may remain live as long the thread that stored it stays live. Example: