From 34bb806f747d5edc16119e38e2ac44e6b236ac12 Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Sat, 10 Aug 2013 21:36:16 +0000 Subject: Fix typos, especially those that end up in the Nix manual --- src/libutil/serialise.hh | 2 +- src/libutil/util.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libutil') diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index e1c4514db..e5a9df1d0 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -61,7 +61,7 @@ struct BufferedSource : Source size_t read(unsigned char * data, size_t len); - /* Underlying read call, to be overriden. */ + /* Underlying read call, to be overridden. */ virtual size_t readUnbuffered(unsigned char * data, size_t len) = 0; bool hasData(); diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5a88a158c..8fd61826f 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -629,8 +629,8 @@ AutoCloseFD::AutoCloseFD(int fd) AutoCloseFD::AutoCloseFD(const AutoCloseFD & fd) { - /* Copying a AutoCloseFD isn't allowed (who should get to close - it?). But as a edge case, allow copying of closed + /* Copying an AutoCloseFD isn't allowed (who should get to close + it?). But as an edge case, allow copying of closed AutoCloseFDs. This is necessary due to tiresome reasons involving copy constructor use on default object values in STL containers (like when you do `map[value]' where value isn't in -- cgit v1.2.3