diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-07 12:33:15 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-07 12:33:15 +1000 |
| commit | 6f58c278bfee6a801795a8883f3d73f1c36a71bb (patch) | |
| tree | 5c980eadf4fc681dba22e0bbcd607f46b659310c /src/string_utils.cc | |
| parent | 23853f499efffd177309fd3221b5501a27115e19 (diff) | |
| parent | cb02186c77e307922a92176893d8a323641dacaf (diff) | |
Merge remote-tracking branch 'Delapouite/no-such'
Diffstat (limited to 'src/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc index 628bff32..801cd5a3 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -287,13 +287,13 @@ void format_impl(StringView fmt, ArrayView<const StringView> params, AppendFunc append(StringView{it, opening}); auto closing = std::find(opening, end, '}'); if (closing == end) - throw runtime_error("Format string error, unclosed '{'"); + throw runtime_error("format string error, unclosed '{'"); const int index = (closing == opening + 1) ? implicitIndex : str_to_int({opening+1, closing}); if (index >= params.size()) - throw runtime_error("Format string parameter index too big"); + throw runtime_error("format string parameter index too big"); append(params[index]); implicitIndex = index+1; |
