mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibCore: Use OSError in get_password() return type
This commit is contained in:
parent
a8681da4bf
commit
70fce5c4c7
4 changed files with 15 additions and 15 deletions
|
@ -26,11 +26,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/OSError.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
Result<String, int> get_password(const StringView& prompt = "Password: ");
|
||||
Result<String, OSError> get_password(const StringView& prompt = "Password: ");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue