mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibDiff: Make Diff::from_text fallible
This commit is contained in:
parent
23df5748f6
commit
ee92378b80
5 changed files with 22 additions and 17 deletions
|
@ -7,9 +7,10 @@
|
|||
#pragma once
|
||||
|
||||
#include "Hunks.h"
|
||||
#include <AK/Error.h>
|
||||
|
||||
namespace Diff {
|
||||
|
||||
Vector<Hunk> from_text(StringView old_text, StringView new_text);
|
||||
ErrorOr<Vector<Hunk>> from_text(StringView old_text, StringView new_text);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue