Skip to content

Commit 0ac3e82

Browse files
Copilotnunoplopes
andauthored
Fix fprintf error message typos
Agent-Logs-Url: https://github.com/Cpp2Rust/cpp2rust/sessions/d26a087d-4f6f-4369-8882-2f9b02a87fcf Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
1 parent d9bc4e9 commit 0ac3e82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ void ConverterRefCount::ConvertPrintf(clang::CallExpr *expr) {
838838
expr->getArg(is_fprintf)->IgnoreImplicit())) {
839839
format = GetEscapedStringLiteral(str);
840840
} else {
841-
llvm::errs() << "Uknown fprintf format: ";
841+
llvm::errs() << "Unknown fprintf format: ";
842842
expr->getArg(1)->dump();
843843
llvm::errs() << '\n';
844844
exit(1);
@@ -851,7 +851,7 @@ void ConverterRefCount::ConvertPrintf(clang::CallExpr *expr) {
851851
} else if (fd == "stderr" || fd == "__stderrp") {
852852
StrCat(ends_newline ? "eprintln!(" : "eprint!(");
853853
} else {
854-
llvm::errs() << "Uknown fprintf fd: " << fd << '\n';
854+
llvm::errs() << "Unknown fprintf fd: " << fd << '\n';
855855
exit(1);
856856
}
857857
if (ends_newline) {

0 commit comments

Comments
 (0)