diff --git a/src/ui/map.js b/src/ui/map.js
index 50c8b6caaea..86309d5eb7b 100755
--- a/src/ui/map.js
+++ b/src/ui/map.js
@@ -202,7 +202,7 @@ const defaultOptions = {
  *   style: style_object,
  *   hash: true,
  *   transformRequest: (url, resourceType)=> {
- *     if(resourceType == 'Source' && url.startsWith('http://myHost')) {
+ *     if(resourceType === 'Source' && url.startsWith('http://myHost')) {
  *       return {
  *        url: url.replace('http', 'https'),
  *        headers: { 'my-custom-header': true},