Skip to content

Commit d3938ab

Browse files
committed
revise comments slightly
1 parent ce8ba1c commit d3938ab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/vips/mutableimage.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ def initialize(image)
5353
# it's the thing we return at the end of the mutate block.
5454
copy_image = image.copy
5555

56-
# use ptr since we need the raw unwrapped pointer inside the image ...
57-
# and make the ref that gobject will unref when it finishes
56+
# Use ptr since we need the raw unwrapped pointer inside the image ...
57+
# and make the ref that gobject will unref when it finishes.
58+
# See also the comment on set_type! before changing this.
5859
pointer = copy_image.ptr
5960
::GObject.g_object_ref pointer
6061
super pointer
@@ -79,7 +80,7 @@ def respond_to? name, include_all = false
7980
end
8081

8182
def respond_to_missing? name, include_all = false
82-
# respond to all vips operations by nickname
83+
# Respond to all vips operations by nickname.
8384
return true if Vips.type_find("VipsOperation", name.to_s) != 0
8485

8586
super
@@ -162,7 +163,7 @@ def set! name, value
162163
#
163164
# @param name [String] Metadata field to remove
164165
def remove! name
165-
# see set_type! for an explanation
166+
# See set_type! for an explanation.
166167
begin
167168
::GObject.g_object_unref self.ptr
168169
Vips.vips_image_remove self, name

0 commit comments

Comments
 (0)