Fix typos

This commit is contained in:
Martin Michlmayr 2020-06-17 14:19:00 +08:00 committed by Paul Beckingham
parent 81183ae7d1
commit 174507e7ad
4 changed files with 5 additions and 5 deletions

View file

@ -397,7 +397,7 @@ Prepends description text to an existing task. Is affected by the context.
.TP .TP
.B task <filter> purge .B task <filter> purge
Permanently removes the specified tasks from the data files. Only Permanently removes the specified tasks from the data files. Only
tasks that are alredy deleted can be purged. This command has a tasks that are already deleted can be purged. This command has a
local-only effect and changes introduced by it are not synced. local-only effect and changes introduced by it are not synced.
Is affected by the context. Is affected by the context.

View file

@ -626,7 +626,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
// if there is no corresponding id, then a new unique date is created). // if there is no corresponding id, then a new unique date is created).
Datetime when (value.substr (0, gap), dateformat); Datetime when (value.substr (0, gap), dateformat);
// If the map already contains a annotation for a given timestamp // If the map already contains an annotation for a given timestamp
// we need to increment until we find an unused key // we need to increment until we find an unused key
int timestamp = (int) when.toEpoch (); int timestamp = (int) when.toEpoch ();

View file

@ -352,7 +352,7 @@ def release_port(port):
def memoize(obj): def memoize(obj):
"""Keep an in-memory cache of function results given it's inputs """Keep an in-memory cache of function results given its inputs
""" """
cache = obj.cache = {} cache = obj.cache = {}

View file

@ -874,14 +874,14 @@ class Test1452(TestCase):
self.task_uuid = self.t.export_one()['uuid'] self.task_uuid = self.t.export_one()['uuid']
def test_get_task_by_uuid_with_prefix(self): def test_get_task_by_uuid_with_prefix(self):
"""1452: Tries to filter task simply by it's uuid, using uuid: prefix.""" """1452: Tries to filter task simply by its uuid, using uuid: prefix."""
output = self.t.export_one('uuid:%s' % self.task_uuid) output = self.t.export_one('uuid:%s' % self.task_uuid)
# Sanity check it is the correct one # Sanity check it is the correct one
self.assertEqual(output['uuid'], self.task_uuid) self.assertEqual(output['uuid'], self.task_uuid)
def test_get_task_by_uuid_without_prefix(self): def test_get_task_by_uuid_without_prefix(self):
"""1452: Tries to filter task simply by it's uuid, without using uuid: prefix.""" """1452: Tries to filter task simply by its uuid, without using uuid: prefix."""
output = self.t.export_one(self.task_uuid) output = self.t.export_one(self.task_uuid)
# Sanity check it is the correct one # Sanity check it is the correct one