Skip to content

Commit 47c83f1

Browse files
committed
Export std::net_url::encode_component
1 parent 081a043 commit 47c83f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn encode(s: &str) -> ~str {
9595
* This function is compliant with RFC 3986.
9696
*/
9797

98-
fn encode_component(s: &str) -> ~str {
98+
pub fn encode_component(s: &str) -> ~str {
9999
encode_inner(s, false)
100100
}
101101

0 commit comments

Comments
 (0)