From fcacef5af9e52204926480fbdeb9a238ecab31d1 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 19 Jul 2022 14:30:07 +0200 Subject: Fix typos found by codespell --- src/annotate.cc | 2 +- src/balance.h | 2 +- src/pyinterp.cc | 6 +++--- src/stream.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/annotate.cc b/src/annotate.cc index 34681ca7..f388fb57 100644 --- a/src/annotate.cc +++ b/src/annotate.cc @@ -148,7 +148,7 @@ void annotation_t::parse(std::istream& in) else if (c == '(') { if (value_expr) throw_(amount_error, - _("Commodity specifies more than one valuation expresion")); + _("Commodity specifies more than one valuation expression")); in.get(); READ_INTO(in, buf, 255, c, c != ')'); diff --git a/src/balance.h b/src/balance.h index 4fc33ef4..9a423b48 100644 --- a/src/balance.h +++ b/src/balance.h @@ -60,7 +60,7 @@ DECLARE_EXCEPTION(balance_error, std::runtime_error); * * @brief A wrapper around amount_t allowing addition of multiple commodities. * - * The balance_t class is appopriate for keeping a running balance + * The balance_t class is appropriate for keeping a running balance * where amounts of multiple commodities may be involved. */ class balance_t diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 2c549890..ed94de84 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -93,14 +93,14 @@ struct python_run { object result; - python_run(python_interpreter_t * intepreter, + python_run(python_interpreter_t * interpreter, const string& str, int input_mode) : result (handle<> (borrowed (PyRun_String(str.c_str(), input_mode, - intepreter->main_module->module_globals.ptr(), - intepreter->main_module->module_globals.ptr())))) {} + interpreter->main_module->module_globals.ptr(), + interpreter->main_module->module_globals.ptr())))) {} operator object() { return result; } diff --git a/src/stream.h b/src/stream.h index 177867ec..8017ea11 100644 --- a/src/stream.h +++ b/src/stream.h @@ -117,7 +117,7 @@ public: const optional& pager_path = none); /** - * Convertor to a standard ostream. This is used so that we can + * Converter to a standard ostream. This is used so that we can * stream directly to an object of type output_stream_t. */ operator std::ostream&() { -- cgit v1.2.3