diff --git a/Userland/Libraries/LibPDF/Document.h b/Userland/Libraries/LibPDF/Document.h index 91243643c3..d195d7bba0 100644 --- a/Userland/Libraries/LibPDF/Document.h +++ b/Userland/Libraries/LibPDF/Document.h @@ -119,10 +119,10 @@ public: return cast_to(TRY(resolve(value))); } - /// Whether this Document is reasdy to resolve references, which is usually + /// Whether this Document is ready to resolve references, which is usually /// true, except just before the XRef table is parsed (and while the linearization /// dict is being read). - bool can_resolve_refefences() { return m_parser->can_resolve_references(); } + bool can_resolve_references() { return m_parser->can_resolve_references(); } private: explicit Document(NonnullRefPtr const& parser); diff --git a/Userland/Libraries/LibPDF/Parser.cpp b/Userland/Libraries/LibPDF/Parser.cpp index 3f878bd8c5..3cc22ece2d 100644 --- a/Userland/Libraries/LibPDF/Parser.cpp +++ b/Userland/Libraries/LibPDF/Parser.cpp @@ -446,7 +446,7 @@ PDFErrorOr> Parser::parse_stream(NonnullRefPtrget(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(maybe_length.value()));