Skip to content

Commit 4502c12

Browse files
author
Antoine Delvaux
committed
Correcting documentation format of ldap.modify().
1 parent f0a9514 commit 4502c12

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/net/ldap.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,10 @@ def add(args)
866866
# operations in order.
867867
#
868868
# Each of the operations appearing in the Array must itself be an Array
869-
# with exactly three elements: an operator:: must be :add, :replace, or
870-
# :delete an attribute name:: the attribute name (string or symbol) to
871-
# modify a value:: either a string or an array of strings.
869+
# with exactly three elements:
870+
# an operator :: must be :add, :replace, or :delete
871+
# an attribute name :: the attribute name (string or symbol) to modify
872+
# a value :: either a string or an array of strings.
872873
#
873874
# The :add operator will, unsurprisingly, add the specified values to the
874875
# specified attribute. If the attribute does not already exist, :add will
@@ -911,13 +912,13 @@ def add(args)
911912
# may not get extended information that will tell you which one failed.
912913
# #modify has no notion of an atomic transaction. If you specify a chain
913914
# of modifications in one call to #modify, and one of them fails, the
914-
# preceding ones will usually not be "rolled back, " resulting in a
915+
# preceding ones will usually not be "rolled back", resulting in a
915916
# partial update. This is a limitation of the LDAP protocol, not of
916917
# Net::LDAP.
917918
#
918919
# The lack of transactional atomicity in LDAP means that you're usually
919920
# better off using the convenience methods #add_attribute,
920-
# #replace_attribute, and #delete_attribute, which are are wrappers over
921+
# #replace_attribute, and #delete_attribute, which are wrappers over
921922
# #modify. However, certain LDAP servers may provide concurrency
922923
# semantics, in which the several operations contained in a single #modify
923924
# call are not interleaved with other modification-requests received

0 commit comments

Comments
 (0)