From 2f985076fc26a37a09d1fbfbe08d085f883ddccf Mon Sep 17 00:00:00 2001 From: onihusube <44743040+onihusube@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:07:06 +0900 Subject: [PATCH] fix typo --- 032-memory-allocation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/032-memory-allocation.md b/032-memory-allocation.md index 30a7290..4a6342b 100644 --- a/032-memory-allocation.md +++ b/032-memory-allocation.md @@ -317,14 +317,14 @@ logger_ptr->~Logger() ; ## new/delete -クラスのオブジェクトを動的確保するのに、生の文字列の確保/解放と、クラスのオブジェクトの構築/破棄をすべて自前で行うのは面倒だ。幸い、確保と構築、破棄と解放を同時にやってくれる機能がある。`new式`と`delete式`だ。 +クラスのオブジェクトを動的確保するのに、生のメモリーの確保/解放と、クラスのオブジェクトの構築/破棄をすべて自前で行うのは面倒だ。幸い、確保と構築、破棄と解放を同時にやってくれる機能がある。`new式`と`delete式`だ。 ~~~c++ new 型 new初期化子 delete ポインター ~~~ -`new式`は生のメモリーを確保し、型のオブジェクトを構築し、型へのポインターを返す。 +`new式`は生のメモリーを確保し、型のオブジェクトを構築し、そのオブジェクトへのポインターを返す。 ~~~cpp int * int_ptr = new int{123} ;