fix: typos (#4202)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
Mike Taves
2026-07-14 03:08:27 +12:00
committed by GitHub
parent 9d53ac53a6
commit fba652eb72
76 changed files with 100 additions and 97 deletions

View File

@@ -77,7 +77,7 @@ async function writeResultsToOutputDir() {
const benchmarkResultContents = await fs.readFile(fullBenchmarkResultPath, {encoding: 'utf-8'});
const benchmarkResults = JSON.parse(benchmarkResultContents);
const { timestamp } = benchmarkResults;
if (typeof timestamp !== 'number') throw new Error("No timestamp found in bechmark result");
if (typeof timestamp !== 'number') throw new Error("No timestamp found in benchmark result");
await fs.copyFile(fullBenchmarkResultPath, path.join(outputDir, `${timestamp}.json`));
} catch (err) {
console.error(`Error ${err}. Skipping: '${benchmarkResultPath}'`);

View File

@@ -379,7 +379,7 @@ for (let layer of layers) {
writeIfModified(`src/mbgl/style/layers/${layerFileName}_layer_properties.hpp`, propertiesHpp(layer), outLocation);
writeIfModified(`src/mbgl/style/layers/${layerFileName}_layer_properties.cpp`, propertiesCpp(layer), outLocation);
// Remove our fake property for the external interace.
// Remove our fake property for the external interface.
if (layer.type === 'line') {
layer.paintProperties = layer.paintProperties.filter(property => property.name !== 'line-floor-width');
}

View File

@@ -73,7 +73,7 @@ modifiedReferenceSpec["paint_location-indicator"] = {
"zoom"
]
},
"doc": "The displacement off the center of the top image and the shadow image when the pitch of the map is greater than 0. This helps producing a three-dimensional appearence."
"doc": "The displacement off the center of the top image and the shadow image when the pitch of the map is greater than 0. This helps producing a three-dimensional appearance."
},
"bearing": {
"type": "number",

View File

@@ -9,7 +9,7 @@ src:*/mbgl/util/hash.hpp
#############################################################################
# vendor libs
# unsigned integer overflow: unsigned interger index in for loop
# unsigned integer overflow: unsigned integer index in for loop
src:*/vendor/earcut.hpp/include/mapbox/earcut.hpp
# unsigned integer overflow: hash function: str_hash

View File

@@ -124,7 +124,7 @@ async function updateDocumentation(documentationPath, examples) {
}
if (status.tag === 'find-codeblock') {
throw Error(`Ended evalution while looking for codeblock with id '${status.id}'`);
throw Error(`Ended evaluation while looking for codeblock with id '${status.id}'`);
}
if (status.tag === 'skip-to-codeblock-end') {