Skip to content

Commit c1e39b2

Browse files
authored
Merge pull request #63 from jlduran/fix-typos
Fix typos
2 parents 6017800 + a4f907c commit c1e39b2

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

lib/pdf/core/annotations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Annotations
1616
# current page.
1717
#
1818
# @param options [Hash] Annotation options. This is basically an `Annot`
19-
# dict as decribed in the PDF spec.
19+
# dict as described in the PDF spec.
2020
# @option options [Symbol<:Text, :Link, :FreeText, :Line, :Square,
2121
# :Circle, :Polygon, :PolyLine, :Highlight, :Underline, :Squiggly,
2222
# :StrikeOut, :Stamp, :Caret, :Ink, :Popup, :FileAttachment, :Sound,

lib/pdf/core/graphics_state.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def empty?
5656
end
5757

5858
# Graphics state.
59-
# It's a *partial* represenation of PDF graphics state. Only the parts
59+
# It's a *partial* representation of PDF graphics state. Only the parts
6060
# implemented in Prawn are present here.
6161
#
6262
# NOTE: This class may be a good candidate for a copy-on-write hash.
@@ -78,7 +78,7 @@ class GraphicState
7878
attr_accessor :join_style
7979

8080
# Line width
81-
# @return [Numberic]
81+
# @return [Numeric]
8282
attr_accessor :line_width
8383

8484
# Fill color

lib/pdf/core/object_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ObjectStore
1313
attr_reader :min_version
1414

1515
# @param opts [Hash]
16-
# @option opts :info [Hash] Documnt info dict
16+
# @option opts :info [Hash] Document info dict
1717
# @option opts :print_scaling [:none, nil] (nil) Print scaling viewer
1818
# option
1919
def initialize(opts = {})

lib/pdf/core/page.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Page
5353
# @return [PDF::Core::Reference<Hash>]
5454
attr_writer :dictionary
5555

56-
# A convenince constant of no indents.
56+
# A convenience constant of no indents.
5757
ZERO_INDENTS = {
5858
left: 0,
5959
bottom: 0,

lib/pdf/core/pdf_object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def string_to_hex(str)
7070
# PDF::Core::NameTree::Node, PDF::Core::NameTree::Value,
7171
# PDF::Core::OutlineRoot, PDF::Core::OutlineItem, PDF::Core::Reference]
7272
# Object to serialise
73-
# @param in_content_stream [Boolean] Specifies whther to use content stream
73+
# @param in_content_stream [Boolean] Specifies whether to use content stream
7474
# format or object format
7575
# @return [String]
7676
# @raise [PDF::Core::Errors::FailedObjectConversion]

lib/pdf/core/text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def fallback_fonts(fallback_fonts = nil)
215215
#
216216
# @param mode [Symbol]
217217
# @yield Temporariliy set text rendering mode
218-
# @return [Symbol] if called withouth mode
218+
# @return [Symbol] if called without mode
219219
# @return [void] otherwise
220220
def text_rendering_mode(mode = nil, &block)
221221
if mode.nil?

spec/pdf/core/reference_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222
end
2323

24-
it 'includes stream fileds in dictionary when serializing' do
24+
it 'includes stream fields in dictionary when serializing' do
2525
ref = described_class.new(1, {})
2626
ref.stream << 'Hello'
2727
expect(ref.object).to eq(

spec/pdf/core_pdf_object_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
expect(described_class.pdf_object(a: 1, b: 2)).to eq described_class.pdf_object(b: 2, a: 1)
190190
end
191191

192-
it 'orders entris alphabetically in PDF dicts' do
192+
it 'orders entries alphabetically in PDF dicts' do
193193
expect(described_class.pdf_object(b: 2, a: 1)).to eq "<< /a 1\n/b 2\n>>"
194194
end
195195

0 commit comments

Comments
 (0)