summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2022-07-19 14:30:07 +0200
committerMartin Michlmayr <tbm@cyrius.com>2022-07-19 22:44:20 +0800
commitfcacef5af9e52204926480fbdeb9a238ecab31d1 (patch)
tree51d1d44e54edd49b6c9cb2db23e57681da7089f1 /src
parent4898e57bdd247f1f2a18ca1217a89e7f1105caae (diff)
downloadfork-ledger-fcacef5af9e52204926480fbdeb9a238ecab31d1.tar.gz
fork-ledger-fcacef5af9e52204926480fbdeb9a238ecab31d1.tar.bz2
fork-ledger-fcacef5af9e52204926480fbdeb9a238ecab31d1.zip
Fix typos found by codespell
Diffstat (limited to 'src')
-rw-r--r--src/annotate.cc2
-rw-r--r--src/balance.h2
-rw-r--r--src/pyinterp.cc6
-rw-r--r--src/stream.h2
4 files changed, 6 insertions, 6 deletions
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<path>& 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&() {