mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
Shell: Convert StringBuilder::appendf() => AK::Format
This commit is contained in:
parent
ea027834df
commit
8c3b603da3
3 changed files with 10 additions and 10 deletions
|
@ -710,7 +710,7 @@ int Shell::builtin_pushd(int argc, const char** argv)
|
|||
if (argv[1][0] == '/') {
|
||||
path_builder.append(argv[1]);
|
||||
} else {
|
||||
path_builder.appendf("%s/%s", cwd.characters(), argv[1]);
|
||||
path_builder.appendff("{}/{}", cwd, argv[1]);
|
||||
}
|
||||
} else if (argc == 3) {
|
||||
directory_stack.append(cwd.characters());
|
||||
|
@ -721,7 +721,7 @@ int Shell::builtin_pushd(int argc, const char** argv)
|
|||
if (arg[0] == '/') {
|
||||
path_builder.append(arg);
|
||||
} else
|
||||
path_builder.appendf("%s/%s", cwd.characters(), arg);
|
||||
path_builder.appendff("{}/{}", cwd, arg);
|
||||
}
|
||||
|
||||
if (!strcmp(arg, "-n"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue