From b5bc001d4263addbf0736aaf9706d8c2ff1ece84 Mon Sep 17 00:00:00 2001 From: dP Date: Tue, 7 Feb 2023 17:55:46 +0400 Subject: [PATCH] Codechange: Swap comments for CommandHelper::Post overloads (#10454) --- src/command_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command_func.h b/src/command_func.h index 9ccd384dc9..45eaabfe15 100644 --- a/src/command_func.h +++ b/src/command_func.h @@ -450,14 +450,14 @@ struct CommandHelper : CommandHel using CommandHelper::Post; /** - * Shortcut for Post when not using an error message. + * Shortcut for Post when not using a callback. * @param err_message Message prefix to show on error * @param location Tile location for user feedback. * @param args Parameters for the command */ static inline bool Post(StringID err_message, TileIndex location, Targs... args) { return Post(err_message, nullptr, location, std::forward(args)...); } /** - * Shortcut for Post when not using a callback. + * Shortcut for Post when not using an error message. * @param callback A callback function to call after the command is finished * @param location Tile location for user feedback. * @param args Parameters for the command