1
Fork 0
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:
Shannon Booth 2023-06-24 12:57:38 +12:00 committed by Andreas Kling
parent 23df5748f6
commit ee92378b80
5 changed files with 22 additions and 17 deletions

View file

@ -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);
}