From 2824adbb206d9721308ed397b45a93fc02741707 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 10 Jul 2021 11:50:40 -0700 Subject: [PATCH] doc: do not use tilde for "about" or "approximately" Refs: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/special-characters --- doc/api/buffer.md | 4 ++-- doc/guides/investigating_native_memory_leak.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index bd6057f39999ec5..d91fd0c71ce6af5 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -5031,9 +5031,9 @@ changes: * {integer} The largest size allowed for a single `Buffer` instance. -On 32-bit architectures, this value currently is 230 - 1 (~1GB). +On 32-bit architectures, this value currently is 230 - 1 (about 1GB). -On 64-bit architectures, this value currently is 232 (~4GB). +On 64-bit architectures, this value currently is 232 (about 4GB). It reflects [`v8::TypedArray::kMaxLength`][] under the hood. diff --git a/doc/guides/investigating_native_memory_leak.md b/doc/guides/investigating_native_memory_leak.md index 55ba1b1ec3d60b0..496046fcd240911 100644 --- a/doc/guides/investigating_native_memory_leak.md +++ b/doc/guides/investigating_native_memory_leak.md @@ -100,8 +100,8 @@ Leaks can be introduced in native addons and the following is a simple example leak based on the "Hello world" addon from [node-addon-examples](https://github.com/nodejs/node-addon-examples). -In this example, a loop which allocates ~1MB of memory and never frees it -has been added: +In this example, a loop which allocates approximately 1MB of memory and never +frees it has been added: ```cpp void* malloc_holder = nullptr;