Skip to content

Commit cd5a170

Browse files
committed
lint: use snake_case
1 parent a8284af commit cd5a170

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/pyramid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main() {
3434
int min_height = *std::min_element(heights.begin(), heights.end());
3535

3636
// Build rings, diminishing up to pyramid height
37-
mcpp::Coordinate base_pt = heights.base_pt().withHeight(min_height);
37+
mcpp::Coordinate base_pt = heights.base_pt().with_height(min_height);
3838
int side_len = pyramid_base_len;
3939
for (int i = 0; i < PYRAMID_HEIGHT; i++) {
4040
make_ring(base_pt + mcpp::Coordinate(i, i, i), side_len - (i * 2));

include/mcpp/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct Coordinate2D {
142142
* @param coord The Coordinate2D object.
143143
* @param y The y value.
144144
*/
145-
constexpr Coordinate withHeight(int y) const;
145+
constexpr Coordinate with_height(int y) const;
146146

147147
/**
148148
* @brief Adds two Coordinate2D objects.
@@ -201,7 +201,7 @@ struct Coordinate2D {
201201
int z;
202202
};
203203

204-
constexpr Coordinate Coordinate2D::withHeight(int y) const {
204+
constexpr Coordinate Coordinate2D::with_height(int y) const {
205205
return Coordinate(this->x, y, this->z);
206206
}
207207

0 commit comments

Comments
 (0)