1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibPDF: Fix a typo in a function name

...and while here, a comment typo too.
This commit is contained in:
Nico Weber 2023-07-05 13:39:53 -04:00 committed by Linus Groh
parent 1177308afb
commit 93357a8b70
2 changed files with 3 additions and 3 deletions

View file

@ -446,7 +446,7 @@ PDFErrorOr<NonnullRefPtr<StreamObject>> Parser::parse_stream(NonnullRefPtr<DictO
ReadonlyBytes bytes;
auto maybe_length = dict->get(CommonNames::Length);
if (maybe_length.has_value() && m_document->can_resolve_refefences()) {
if (maybe_length.has_value() && m_document->can_resolve_references()) {
// The PDF writer has kindly provided us with the direct length of the stream
m_reader.save();
auto length = TRY(m_document->resolve_to<int>(maybe_length.value()));