summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2020-05-21 21:12:39 +0800
committerMartin Michlmayr <tbm@cyrius.com>2020-05-21 21:12:39 +0800
commitbc1dcd187fb6f24d6b96ceb4c9b9176624b90dab (patch)
treecc6e3300943195e1e096bc84fbfefb8dfce3bb61
parenta254f598b2fc99d7ae917579803ccdd6dc872c4d (diff)
downloadfork-ledger-bc1dcd187fb6f24d6b96ceb4c9b9176624b90dab.tar.gz
fork-ledger-bc1dcd187fb6f24d6b96ceb4c9b9176624b90dab.tar.bz2
fork-ledger-bc1dcd187fb6f24d6b96ceb4c9b9176624b90dab.zip
Fix typos in comments
-rw-r--r--src/amount.cc4
-rw-r--r--src/chain.cc2
-rw-r--r--src/convert.cc2
-rw-r--r--src/filters.cc2
-rw-r--r--src/history.cc2
-rw-r--r--src/op.cc2
-rw-r--r--src/pstream.h2
-rw-r--r--src/stream.cc2
-rw-r--r--src/strptime.cc2
-rw-r--r--src/textual.cc2
10 files changed, 11 insertions, 11 deletions
diff --git a/src/amount.cc b/src/amount.cc
index c6463b2b..788a140c 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -236,7 +236,7 @@ void amount_t::initialize()
commodity_pool_t::current_pool.reset(new commodity_pool_t);
- // Add time commodity conversions, so that timelog's may be parsed
+ // Add time commodity conversions, so that timelogs may be parsed
// in terms of seconds, but reported as minutes or hours.
if (commodity_t * commodity = commodity_pool_t::current_pool->create("s"))
commodity->add_flags(COMMODITY_BUILTIN | COMMODITY_NOMARKET);
@@ -1051,7 +1051,7 @@ bool amount_t::parse(std::istream& in, const parse_flags_t& flags)
// Allocate memory for the amount's quantity value. We have to
// monitor the allocation in a unique_ptr because this function gets
// called sometimes from amount_t's constructor; and if there is an
- // exeception thrown by any of the function calls after this point,
+ // exception thrown by any of the function calls after this point,
// the destructor will never be called and the memory never freed.
unique_ptr<bigint_t> new_quantity;
diff --git a/src/chain.cc b/src/chain.cc
index d508dd3e..ed795007 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -202,7 +202,7 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler,
// xact, which has one post for each commodity in each account.
//
// period_posts is like subtotal_posts, but it subtotals according to time
- // periods rather than totalling everything.
+ // periods rather than totaling everything.
//
// day_of_week_posts is like period_posts, except that it reports
// all the posts that fall on each subsequent day of the week.
diff --git a/src/convert.cc b/src/convert.cc
index cea2a130..86728483 100644
--- a/src/convert.cc
+++ b/src/convert.cc
@@ -129,7 +129,7 @@ value_t convert_command(call_scope_t& args)
// If not, transform the payee according to regexps
- // Set the account to a default vaule, then transform the account according
+ // Set the account to a default value, then transform the account according
// to the payee
// Print out the final form of the transaction
diff --git a/src/filters.cc b/src/filters.cc
index 564c5f97..0bf89283 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -1397,7 +1397,7 @@ void forecast_posts::flush()
// of the pending_posts_list for each posting.
//
// The algorithm below works by iterating through the N periodic postings
- // over and over, until each of them mets the termination critera for the
+ // over and over, until each of them meets the termination criteria for the
// forecast and is removed from the set.
while (pending_posts.size() > 0) {
diff --git a/src/history.cc b/src/history.cc
index 7c98182c..cbadf916 100644
--- a/src/history.cc
+++ b/src/history.cc
@@ -74,7 +74,7 @@ public:
property<edge_price_ratio_t, price_map_t,
property<edge_price_point_t, price_point_t> > >,
- // Graph itself has a std::string name
+ // Graph itself has an std::string name
property<graph_name_t, std::string>
> Graph;
diff --git a/src/op.cc b/src/op.cc
index 5801b1dd..b4d4a56e 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -441,7 +441,7 @@ namespace {
int recursion_depth = 0)
{
// If the object we are apply call notation to is a FUNCTION value
- // or a O_LAMBDA expression, then this is the object we want to
+ // or an O_LAMBDA expression, then this is the object we want to
// call.
if (op->is_function() || op->kind == expr_t::op_t::O_LAMBDA)
return op;
diff --git a/src/pstream.h b/src/pstream.h
index 6b12dcf0..16b16ce8 100644
--- a/src/pstream.h
+++ b/src/pstream.h
@@ -84,7 +84,7 @@ class ptristream : public std::istream
ios_base::openmode)
{
// cast to avoid gcc '-Wswitch' warning
- // as ios_base::beg/cur/end are not necesssarily values of 'way' enum type ios_base::seekdir
+ // as ios_base::beg/cur/end are not necessarily values of 'way' enum type ios_base::seekdir
// based on https://svn.boost.org/trac/boost/ticket/7644
switch (static_cast<int>(way)) {
case std::ios::cur:
diff --git a/src/stream.cc b/src/stream.cc
index 91a190d8..76f1d52e 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -75,7 +75,7 @@ namespace {
if (status == -1)
perror("dup2");
- // Close unuseful file descriptors: the pipe's writing and reading
+ // Close unused file descriptors: the pipe's writing and reading
// ends (the latter is not needed anymore, after the duplication).
close(pfd[1]);
close(pfd[0]);
diff --git a/src/strptime.cc b/src/strptime.cc
index ac6885a6..d390d1fa 100644
--- a/src/strptime.cc
+++ b/src/strptime.cc
@@ -174,7 +174,7 @@ static char* _strptime(const char *s, const char *format, struct tm *tm) {
}
break;
- // arbitray whitespace.
+ // arbitrary whitespace.
case 't':
case 'n':
while (isspace(*s)) ++s;
diff --git a/src/textual.cc b/src/textual.cc
index ebd7c314..c3bb2c2f 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -862,7 +862,7 @@ void instance_t::apply_year_directive(char * line)
apply_stack.push_front(application_t("year", epoch));
DEBUG("times.epoch", "Setting current year to " << year);
// This must be set to the last day of the year, otherwise partial
- // dates like "11/01" will refer to last year's november, not the
+ // dates like "11/01" will refer to last year's November, not the
// current year.
epoch = datetime_t(date_t(year, 12, 31));
} catch(bad_lexical_cast &) {