"master" branch --> "main" branch
diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
index a2a5feb..0943d8f 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -31,7 +31,7 @@
 **Platform(s) (compiler version, operating system version, CPU) on which the bug was observed:**
 
 
-**libjpeg-turbo release(s), commit(s), or branch(es) in which the bug was observed (always test the tip of the master branch or the latest [stable pre-release](https://libjpeg-turbo.org/DeveloperInfo/PreReleases) to verify that the bug hasn't already been fixed):**
+**libjpeg-turbo release(s), commit(s), or branch(es) in which the bug was observed (always test the tip of the main branch or the latest [stable pre-release](https://libjpeg-turbo.org/DeveloperInfo/PreReleases) to verify that the bug hasn't already been fixed):**
 
 
 **If the bug is a regression, the specific commit that introduced the regression (use `git bisect` to determine this):**
diff --git a/BUILDING.md b/BUILDING.md
index 2aef181..39ac35d 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -408,7 +408,7 @@
 ### Additional build requirements
 
 - For configurations that require [gas-preprocessor.pl]
-  (https://raw.githubusercontent.com/libjpeg-turbo/gas-preprocessor/master/gas-preprocessor.pl),
+  (https://raw.githubusercontent.com/libjpeg-turbo/gas-preprocessor/main/gas-preprocessor.pl),
   it should be installed in your `PATH`.