From 45b1262d9d837e94a2faa60e95d894ba39e24fc8 Mon Sep 17 00:00:00 2001 From: Adam JOLY Date: Tue, 12 Nov 2024 21:56:58 +0100 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix(Phonebook)?= =?UTF-8?q?:=20Fixed=20so=20text=20is=20aligned=20at=20right=20and=20not?= =?UTF-8?q?=20left?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex01/src/commands/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex01/src/commands/search.cpp b/ex01/src/commands/search.cpp index 81f8bd4..1e7ecf7 100644 --- a/ex01/src/commands/search.cpp +++ b/ex01/src/commands/search.cpp @@ -22,7 +22,7 @@ std::string PhoneBook::__formatstr(std::string str) { } else { while (str.size() < 10) - str.append(" "); + str.insert(0, " "); } return (str); }