diff --git a/README.md b/README.md index d91dbb2b..258bb370 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ void rotating_example() // Create a file rotating logger with 5mb size max and 3 rotated files auto max_size = 1048576 * 5; auto max_files = 3; - auto rotating_logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", max_size, max_files); + auto logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", max_size, max_files); } ```