Skip to content

Commit 58faaf1

Browse files
y-yagimatzbot
authored andcommitted
[ruby/uri] [DOC] Fix result of sample code in #user=
A `password` is cleared when change a user now. ruby/uri@af6714473c
1 parent 35445a7 commit 58faaf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uri/generic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def userinfo=(userinfo)
466466
#
467467
# uri = URI.parse("http://john:S3nsit1ve@my.example.com")
468468
# uri.user = "sam"
469-
# uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
469+
# uri.to_s #=> "http://sam@my.example.com"
470470
#
471471
def user=(user)
472472
check_user(user)

0 commit comments

Comments
 (0)