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

@@ -6,7 +6,7 @@
namespace mbgl {
// A movable type-erasing function wrapper. This allows to store arbitrary
// invokable things (like std::function<>, or the result of a movable-only
// invocable things (like std::function<>, or the result of a movable-only
// std::bind()) in the queue. Source: http://stackoverflow.com/a/29642072/331379
class Message {
public:

View File

@@ -95,7 +95,7 @@ public:
/// Get the *sequenced* scheduler for asynchronous tasks.
/// Unlike the method above, the returned scheduler
/// (once stored) represents a single thread, thus each
/// newly scheduled task is guarantied to run after the
/// newly scheduled task is guaranteed to run after the
/// previously scheduled one.
///
/// Sequenced scheduler can be used for running tasks

View File

@@ -213,7 +213,7 @@ public:
/// Add a polyline in geographic coordinates, using wide vectors.
void addWideVectorPolylineGlobal(const LineString<double>& coordinates, const gfx::PolylineGeneratorOptions&);
/// return the curent vertex count
/// return the current vertex count
std::size_t curVertexCount() const;
bool empty() const { return !(drawables.size() || curVertexCount()); }

View File

@@ -8,7 +8,7 @@ namespace gfx {
/// Graphic primitive type enumeration
enum class PrimitiveType : uint8_t {
Point, ///< point primitive
Line, ///< line primive
Line, ///< line primitive
Triangle, ///< triangle primitive
};

View File

@@ -64,7 +64,7 @@ protected:
/// 1. When releasing GL resources during Renderer destruction
/// (Including calling CustomLayerHost::deinitialize during
/// RenderCustomLayer destruction)
/// 2. When renderering through Renderer::render()
/// 2. When rendering through Renderer::render()
/// (Including calling CustomLayerHost::initialize for newly added
/// custom layers and
/// CustomLayerHost::deinitialize on layer removal)

View File

@@ -60,7 +60,7 @@ public:
* not provide line, fill or symbol layers (those, used by the annotations
* implementation).
*
* Note: in future, annotations implemantation will be moved from the core
* Note: in future, annotations implementation will be moved from the core
* to platform SDK (see
* https://github.com/maplibre/maplibre-plugins-android)
* and this flag won't be needed any more.

View File

@@ -46,7 +46,7 @@ public:
struct RenderFrameStatus {
RenderMode mode;
bool needsRepaint; // In continous mode, shows that there are ongoig transitions.
bool needsRepaint; // In continuous mode, shows that there are ongoig transitions.
bool placementChanged;
gfx::RenderingStats renderingStats;
};

View File

@@ -68,7 +68,7 @@ public:
std::size_t index,
std::size_t size) const noexcept;
/// Update the offset, when this buffer is alread bound to the specified index (unchecked).
/// Update the offset, when this buffer is already bound to the specified index (unchecked).
void updateVertexBindOffset(const MTLRenderCommandEncoderPtr&,
std::size_t offset,
std::size_t index,

View File

@@ -49,7 +49,7 @@ public:
/// @brief Get a specific layer group by index
/// @param layerIndex index
/// @return the layer group if existant, othewise a shared null pointer
/// @return the layer group if existent, otherwise a shared null pointer
const LayerGroupBasePtr& getLayerGroup(const int32_t layerIndex) const;
/// Execute the given function for each contained layer group

View File

@@ -22,7 +22,7 @@ layout (std140) uniform DebugUBO {
void main() {
// This vertex shader expects a EXTENT x EXTENT quad,
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
// The UV coordinates for the overlay texture can be calculated using that knowledge
v_uv = a_pos / 8192.0;
gl_Position = u_matrix * vec4(a_pos * u_overlay_scale, 0, 1);
}

View File

@@ -55,7 +55,7 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
const float4 position = debug.matrix * float4(float2(vertx.pos) * debug.overlay_scale, 0, 1);
// This vertex shader expects a EXTENT x EXTENT quad,
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
// The UV coordinates for the overlay texture can be calculated using that knowledge
float2 uv = float2(vertx.pos) / 8192.0;
return {

View File

@@ -38,7 +38,7 @@ void main() {
applySurfaceTransform();
// This vertex shader expects a EXTENT x EXTENT quad,
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
// The UV coordinates for the overlay texture can be calculated using that knowledge
frag_uv = in_position / 8192.0;
}
)";

View File

@@ -43,7 +43,7 @@ fn main(in: VertexInput) -> VertexOutput {
out.position = debug.matrix * vec4<f32>(scaled_pos, 0.0, 1.0);
// This vertex shader expects a EXTENT x EXTENT quad,
// The UV co-ordinates for the overlay texture can be calculated using that knowledge
// The UV coordinates for the overlay texture can be calculated using that knowledge
out.uv = vec2<f32>(f32(in.position.x), f32(in.position.y)) / 8192.0;
return out;

View File

@@ -78,7 +78,7 @@ namespace style {
`const char *`; return value:
* is true when evaluated in a boolean context iff the named member
exists
* is convertable to a `V` or `V&` when dereferenced
* is convertible to a `V` or `V&` when dereferenced
* `eachMember(v, [] (const std::string&, const V&) -> std::optional<Error>
{...})` -- called only if `isObject(v)`; calls the provided lambda once for
each key and value of the object; short-circuits if any call returns an

View File

@@ -42,7 +42,7 @@ std::string toString(const CanonicalTileID&);
} // namespace util
// Has integer z/x/y coordinates
// overscaledZ describes the zoom level this tile is intented to represent, e.g.
// overscaledZ describes the zoom level this tile is intended to represent, e.g.
// when parsing data z is never larger than the source's maxzoom z/x/y describe
// the
class OverscaledTileID {

View File

@@ -11,7 +11,7 @@ namespace util {
/// A wrapper around `unordered_map` which uses linear search below some threshold of size.
///
/// Currently an immutable map, not allowing insert or delete, but could be extended to allow that, with extra cost when
/// transitioning over the threshold value, of course. The maped values can be modified via reference accessors, just
/// transitioning over the threshold value, of course. The mapped values can be modified via reference accessors, just
/// not the set of keys or the keys themselves. Since the small-case elements are stored separately from
/// `unordered_map`, we can't use that class' iterators, and its interface is private. A wrapper iterator might allow
/// for a better and more complete public interface.

View File

@@ -7,7 +7,7 @@
namespace mbgl {
/// A movable type-erasing function wrapper. This allows to store arbitrary
/// invokable things (like std::function<>, or the result of a movable-only
/// invocable things (like std::function<>, or the result of a movable-only
/// std::bind()) in the queue. Source:
/// http://stackoverflow.com/a/29642072/331379
class WorkTask : private util::noncopyable {