Skip to content

Commit 1865c23

Browse files
authored
doc: Fix typos (#76)
Found via `codespell -S data,./test/third_party -L ded,nast` and `typos --hidden --format brief`
1 parent fef215d commit 1865c23

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ jobs:
290290
path: ${{env.Bin}}
291291
merge-multiple: true
292292

293-
- name: List Release Directiory
293+
- name: List Release Directory
294294
run: |
295295
ls -l ${{env.Bin}}
296296

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ guix package --install astroterm # add to current profile
125125
- **Linux:** `linux`
126126
- **macOS:** `darwin`
127127
- Replace `<arch>` with the appropriate architecture:
128-
- **Linux:** `x86_64` (arm64 support to come after [Ubuntu arm64 runners](https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/) are avilable)
128+
- **Linux:** `x86_64` (arm64 support to come after [Ubuntu arm64 runners](https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/) are available)
129129
- **Apple Silicon (M-series):** `aarch64`
130130
- **Intel-based Macs:** `x86_64`
131131
- To view all supported combinations, see the [Releases](https://github.com/da-luce/astroterm/releases) page.

include/coord.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* Coordinate system utilities.
22
*
3-
* Coordinate systems definitons
3+
* Coordinate systems definitions
44
* - All angles in radians unless otherwise noted
5-
* - Using common mathmatical conventions as opposed to physics
5+
* - Using common mathematical conventions as opposed to physics
66
* - https://en.wikipedia.org/wiki/Spherical_coordinate_system
77
* - FIXME: this is not the ISO standard, maybe we should change it.
88
*

src/astro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ const char *get_zodiac_symbol(int month, int day)
394394
/* Takes the normalized age of the moon within the synodic month
395395
* (phase ∈ [0, 1)), and returns the phase of the moon [0,1,...,7], where
396396
* 0 : new moon
397-
* 1 : waxing cresent
397+
* 1 : waxing crescent
398398
* ...
399399
* 4 : full moon
400400
* etc.

src/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ bool star_numbers_by_magnitude(int **num_by_mag, const struct Star *star_table,
461461
memcpy(table_copy, star_table, num_stars * sizeof(*table_copy));
462462
qsort(table_copy, num_stars, sizeof(struct Star), star_magnitude_comparator);
463463

464-
// Create and fill array of indicies in table copy
464+
// Create and fill array of indices in table copy
465465
*num_by_mag = malloc(num_stars * sizeof(int));
466466
if (*num_by_mag == NULL)
467467
{

src/core_render.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void render_azimuthal_grid(WINDOW *win, const struct Conf *config)
263263
int step_sizes[5] = {10, 15, 30, 45, 90};
264264
int length = sizeof(step_sizes) / sizeof(step_sizes[0]);
265265

266-
// Minumum number of rows separating grid line (at end of window)
266+
// Minimum number of rows separating grid line (at end of window)
267267
int min_height = 10;
268268

269269
// Set the step size to the smallest desirable increment

src/stopwatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// UNIX headers
77
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
88
#include <sys/time.h>
9-
#include <unistd.h> // Needed for _POSIX_TIMERS definintion & usleep()
9+
#include <unistd.h> // Needed for _POSIX_TIMERS definition & usleep()
1010
#endif
1111

1212
// Windows headers

src/strptime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ char *strptime(const char *buf, const char *fmt, struct tm *tm)
267267
continue;
268268

269269
case 'x': /* The date, using the locale's format. */
270-
/* fall throug */
270+
/* fall through */
271271

272272
case 'D': /* The date as "%y/%m/%d". */
273273
{

test/core_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void test_update_planet_positions(void)
218218
TEST_ASSERT_DOUBLE_WITHIN(P_EPSILON, -0.341956, planet_table[MARS].base.altitude);
219219

220220
// Verify Neptune's position is correct
221-
// Note that the outer planets have extra kep elements (position takes mroe calculation)
221+
// Note that the outer planets have extra kep elements (position takes more calculation)
222222
// https://stellarium-web.org/skysource/Neptune?fov=120.00&date=2020-10-23T12:00:00Z&lat=42.36&lng=-71.06&elev=0
223223
TEST_ASSERT_DOUBLE_WITHIN(P_EPSILON, 5.5390816, planet_table[NEPTUNE].base.azimuth);
224224
TEST_ASSERT_DOUBLE_WITHIN(P_EPSILON, -0.779650, planet_table[NEPTUNE].base.altitude);

0 commit comments

Comments
 (0)