summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-04-07 12:33:15 +1000
committerMaxime Coste <mawww@kakoune.org>2018-04-07 12:33:15 +1000
commit6f58c278bfee6a801795a8883f3d73f1c36a71bb (patch)
tree5c980eadf4fc681dba22e0bbcd607f46b659310c /src/string_utils.cc
parent23853f499efffd177309fd3221b5501a27115e19 (diff)
parentcb02186c77e307922a92176893d8a323641dacaf (diff)
Merge remote-tracking branch 'Delapouite/no-such'
Diffstat (limited to 'src/string_utils.cc')
-rw-r--r--src/string_utils.cc4
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;