Skip to content

Commit

Permalink
Use main branch instead of master
Browse files Browse the repository at this point in the history
[About 1.5 years ago](tldr-pages/tldr#5868), we deprecated the master branch in favour of the main branch. We intend to remove it [soon, likely by May 1st 2023](tldr-pages/tldr#9628).
  • Loading branch information
kbdharun committed Dec 27, 2022
1 parent 6bf593c commit d19d4c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const PLATFORM: &'static str = "osx";
const PLATFORM: &'static str = "linux";

fn fetch_from_internet(command: &str) -> String {
let common_url = format!("https://raw.github.com/tldr-pages/tldr/master/pages/common/{page}.md", page = command);
let platform_url = format!("https://raw.github.com/tldr-pages/tldr/master/pages/{platform}/{page}.md", page = command, platform=PLATFORM);
let common_url = format!("https://raw.github.com/tldr-pages/tldr/main/pages/common/{page}.md", page = command);
let platform_url = format!("https://raw.github.com/tldr-pages/tldr/main/pages/{platform}/{page}.md", page = command, platform=PLATFORM);

let client = Client::new();

Expand Down Expand Up @@ -72,4 +72,4 @@ fn render(the_tldr: &str) {

println!("{}", rendered);
}
}
}

0 comments on commit d19d4c3

Please sign in to comment.