Skip to content

Commit

Permalink
foramt : デバッグ出力例を修正
Browse files Browse the repository at this point in the history
デバッグ出力は、入力文字列と等価な文字列リテラルを生成可能な文字列を出力するので
\nは改行文字1文字としてエスケープシーケンスに置換される(はず)(未確認)
  • Loading branch information
onihusube committed Jan 23, 2023
1 parent 549b24e commit 3fd8e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/format/format.md
Expand Up @@ -97,7 +97,7 @@ string s3 = format("{} {1}", "a", "b"); // コンパイルエラー
| type | 意味 |効果 | 対応バージョン |
|:-----------|:-------------|--------------------------------------------------------------------------------------|-------|
| s (省略可) | 文字列 | 文字列をそのまま出力 | C++20 |
| ? | デバッグ出力 | 文字・文字列を引用符で囲み、エスケープシーケンスをエスケープして出力 (例:`"\n"``"\"\\n\""`となる) | C++23 |
| ? | デバッグ出力 | 文字・文字列を引用符で囲み、エスケープシーケンスをエスケープして出力 (例:`"\n"``"\"\n\""`となる) | C++23 |

#### 文字型 / `bool`型 / 整数型の場合

Expand Down

0 comments on commit 3fd8e81

Please sign in to comment.