ruby-changes:50978
From: stomar <ko1@a...>
Date: Wed, 18 Apr 2018 04:49:55 +0900 (JST)
Subject: [ruby-changes:50978] stomar:r63185 (trunk): lib/uri/ldap.rb: fix errors in docs for URI::LDAP
stomar 2018-04-18 04:49:51 +0900 (Wed, 18 Apr 2018) New Revision: 63185 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63185 Log: 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. Modified files: trunk/lib/uri/ldap.rb Index: lib/uri/ldap.rb =================================================================== --- lib/uri/ldap.rb (revision 63184) +++ lib/uri/ldap.rb (revision 63185) @@ -66,7 +66,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/ldap.rb#L66 # Example: # # newuri = URI::LDAP.build({:host => 'ldap.example.com', - # :dn> => '/dc=example'}) + # :dn => '/dc=example'}) # # newuri = URI::LDAP.build(["ldap.example.com", nil, # "/dc=example;dc=com", "query", nil, nil, nil]) @@ -100,8 +100,8 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/ldap.rb#L100 # # Example: # - # uri = URI::LDAP.new("ldap", nil, "ldap.example.com", nil, - # "/dc=example;dc=com", "query", nil, nil, nil, nil) + # uri = URI::LDAP.new("ldap", nil, "ldap.example.com", nil, nil, + # "/dc=example;dc=com", nil, "query", nil) # # # See also URI::Generic.new -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/