summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_disk_queue.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_disk_queue.erl b/src/rabbit_disk_queue.erl
index f6a1c8ca80..33a1aaa830 100644
--- a/src/rabbit_disk_queue.erl
+++ b/src/rabbit_disk_queue.erl
@@ -1803,9 +1803,9 @@ recover_crashed_compactions1(Files, TmpFile) ->
end,
ok.
-%% takes the list in *ascending* order (i.e. oldest message
-%% first). This is the opposite of whach scan_file_for_valid_messages
-%% produces. The list of msgs that is produced is youngest first
+%% Takes the list in *ascending* order (i.e. eldest message
+%% first). This is the opposite of what scan_file_for_valid_messages
+%% produces. The list of msgs that is produced is youngest first.
find_contiguous_block_prefix([]) -> {0, []};
find_contiguous_block_prefix(List) ->
find_contiguous_block_prefix(List, 0, []).