diff options
author | NerdyPepper <[email protected]> | 2018-06-27 12:33:23 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2018-06-27 12:33:23 +0100 |
commit | b212622e88ba54d9d69df8aed1d5abcc50dc5e1b (patch) | |
tree | 37c8a26bee032a4589e2419da56677ca17ea0ec8 /src | |
parent | 7157ce3790af718359dc2aaa089cc6fc843284b7 (diff) |
Add helpful comments
Diffstat (limited to 'src')
-rw-r--r-- | src/content.rs | 1 |
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 | ||
25 | pub fn search_url_gen(search: &str) -> String { | 25 | pub 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?"); |