Skip to content

Commit 9b2145a

Browse files
committed
Fix RDoc comments for #update/#update!
1 parent a763ab1 commit 9b2145a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/dynamoid/persistence.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ def update_attribute(attribute, value)
620620
# attributes. Supports following operations: +add+, +delete+ and +set+.
621621
#
622622
# Operation +add+ just adds a value for numeric attributes and join
623-
# collections if attribute is a collection (one of +array+, +set+ or
624-
# +map+).
623+
# collections if attribute is a set.
625624
#
626625
# user.update! do |t|
627626
# t.add(age: 1, followers_count: 5)
@@ -646,7 +645,7 @@ def update_attribute(attribute, value)
646645
# {parameter}[https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html]
647646
# of +UpdateItem+ operation.
648647
#
649-
# It's an atomic operation. So adding or deleting elements in a collection
648+
# It's atomic operations. So adding or deleting elements in a collection
650649
# or incrementing or decrementing a numeric field is atomic and does not
651650
# interfere with other write requests.
652651
#
@@ -716,8 +715,7 @@ def update!(conditions = {})
716715
# attributes. Supports following operations: +add+, +delete+ and +set+.
717716
#
718717
# Operation +add+ just adds a value for numeric attributes and join
719-
# collections if attribute is a collection (one of +array+, +set+ or
720-
# +map+).
718+
# collections if attribute is a set.
721719
#
722720
# user.update do |t|
723721
# t.add(age: 1, followers_count: 5)

0 commit comments

Comments
 (0)