Skip to content

Commit

Permalink
fixed a few descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 1, 2011
1 parent e3a6590 commit 077ae1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/Mojo/URL.pm
Expand Up @@ -53,12 +53,11 @@ sub authority {
}

# Format
my $host = $self->ihost;
my $port = $self->port;
my $userinfo = $self->userinfo;
$authority .= url_escape($userinfo, "$UNRESERVED$SUBDELIM\:") . '@'
if $userinfo;
$authority .= lc($host || '');
$authority .= lc($self->ihost || '');
my $port = $self->port;
$authority .= ":$port" if $port;

return $authority;
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/Util.pm
Expand Up @@ -700,13 +700,13 @@ L<Mojo::Util> implements the following functions.
my $string = b64_decode $b64;
Base64 decode.
Base64 decode string.
=head2 C<b64_encode>
my $b64 = b64_encode $string;
Base64 encode.
Base64 encode string.
=head2 C<camelize>
Expand All @@ -730,13 +730,13 @@ Convert camel case string to snake case and replace C<::> with C<->.
my $chars = decode 'UTF-8', $bytes;
Decode bytes.
Decode bytes to characters.
=head2 C<encode>
my $bytes = encode 'UTF-8', $chars;
Encode characters.
Encode characters to bytes.
=head2 C<get_line>
Expand Down

0 comments on commit 077ae1a

Please sign in to comment.