lib/uri/ldap.rb: fix errors in docs for URI::LDAP

* lib/uri/ldap.rb: [DOC] fix errors in example code
  for URI::LDAP.build and URI::LDAP.new.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2018-04-17 19:49:51 +00:00
parent 6a2b454b97
commit ed510458b3

View File

@ -66,7 +66,7 @@ module URI
# Example: # Example:
# #
# newuri = URI::LDAP.build({:host => 'ldap.example.com', # newuri = URI::LDAP.build({:host => 'ldap.example.com',
# :dn> => '/dc=example'}) # :dn => '/dc=example'})
# #
# newuri = URI::LDAP.build(["ldap.example.com", nil, # newuri = URI::LDAP.build(["ldap.example.com", nil,
# "/dc=example;dc=com", "query", nil, nil, nil]) # "/dc=example;dc=com", "query", nil, nil, nil])
@ -100,8 +100,8 @@ module URI
# #
# Example: # Example:
# #
# uri = URI::LDAP.new("ldap", nil, "ldap.example.com", nil, # uri = URI::LDAP.new("ldap", nil, "ldap.example.com", nil, nil,
# "/dc=example;dc=com", "query", nil, nil, nil, nil) # "/dc=example;dc=com", nil, "query", nil)
# #
# #
# See also URI::Generic.new # See also URI::Generic.new