Skip to content

Commit af67144

Browse files
committed
[DOC] Fix result of sample code in #user=
A `password` is cleared when change a user now.
1 parent 29339cf commit af67144

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)