From 93357a8b704d00425f627b3342ff76ea0a2855b0 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 5 Jul 2023 13:39:53 -0400 Subject: [PATCH] LibPDF: Fix a typo in a function name ...and while here, a comment typo too. --- Userland/Libraries/LibPDF/Document.h | 4 ++-- Userland/Libraries/LibPDF/Parser.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()));