aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2018-06-27 12:33:23 +0100
committerNerdyPepper <[email protected]>2018-06-27 12:33:23 +0100
commitb212622e88ba54d9d69df8aed1d5abcc50dc5e1b (patch)
tree37c8a26bee032a4589e2419da56677ca17ea0ec8
parent7157ce3790af718359dc2aaa089cc6fc843284b7 (diff)
Add helpful comments
-rw-r--r--src/content.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content.rs b/src/content.rs
index ab2f08e..b3b50c2 100644
--- a/src/content.rs
+++ b/src/content.rs
@@ -23,6 +23,7 @@ pub fn query_url_gen(title: &str) -> String {
23} 23}
24 24
25pub fn search_url_gen(search: &str) -> String { 25pub fn search_url_gen(search: &str) -> String {
26 // search config
26 search.replace(" ", "%20"); 27 search.replace(" ", "%20");
27 let mut url = String::from("https://en.wikipedia.org"); 28 let mut url = String::from("https://en.wikipedia.org");
28 url.push_str("/w/api.php?"); 29 url.push_str("/w/api.php?");