mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/uri] [DOC] Fix result of sample code in #user=
A `password` is cleared when change a user now. https://github.com/ruby/uri/commit/af6714473c
This commit is contained in:
parent
35445a736f
commit
58faaf11df
@ -466,7 +466,7 @@ module URI
|
||||
#
|
||||
# uri = URI.parse("http://john:S3nsit1ve@my.example.com")
|
||||
# uri.user = "sam"
|
||||
# uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
|
||||
# uri.to_s #=> "http://sam@my.example.com"
|
||||
#
|
||||
def user=(user)
|
||||
check_user(user)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user