From 4acbef2a84701321bfc5664080553147eafd8696 Mon Sep 17 00:00:00 2001 From: Clint Herron Date: Wed, 3 Jul 2024 14:34:44 -0400 Subject: [PATCH] Updating comments and message text for clarity. --- examples/deprecation-warning/deprecation-warning.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/deprecation-warning/deprecation-warning.cpp b/examples/deprecation-warning/deprecation-warning.cpp index 9da97e32b..cb3ca217b 100644 --- a/examples/deprecation-warning/deprecation-warning.cpp +++ b/examples/deprecation-warning/deprecation-warning.cpp @@ -1,5 +1,4 @@ // Warns users that this filename was deprecated, and provides a link for more information. -// If the name of the file matches a name in a lookup table, then provide the replacement name as well. #include #include @@ -21,7 +20,7 @@ int main(int argc, char** argv) { // Append "llama-" to the beginning of filename to get the replacemnt filename auto replacement_filename = "llama-" + filename; - // If filename is "main", then our replacement filename is llama-cli + // The exception is if the filename is "main", then our replacement filename is "llama-cli" if (filename == "main") { replacement_filename = "llama-cli"; } @@ -29,7 +28,7 @@ int main(int argc, char** argv) { fprintf(stdout, "\n"); fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str()); fprintf(stdout, " Please use '%s' instead.\n", replacement_filename.c_str()); - fprintf(stdout, " See https://github.com/ggerganov/llama.cpp/tree/master/examples/deprecation-warning for more information.\n"); + fprintf(stdout, " See https://github.com/ggerganov/llama.cpp/tree/master/examples/deprecation-warning/README.md for more information.\n"); fprintf(stdout, "\n"); return EXIT_FAILURE;