From c0e12bf8d2eb3ee78d6926b8d6010bbbafce97ef Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 4 Dec 2024 16:26:02 -0500 Subject: [PATCH] Fix typos in public headers [ci skip] --- include/ruby/internal/intern/select/win32.h | 2 +- include/ruby/internal/symbol.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ruby/internal/intern/select/win32.h b/include/ruby/internal/intern/select/win32.h index 4c8de76009..b7301e63f3 100644 --- a/include/ruby/internal/intern/select/win32.h +++ b/include/ruby/internal/intern/select/win32.h @@ -206,7 +206,7 @@ rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src) * property we heavily touch the internals of MSVCRT. We `CreateFile` a * `"NUL"` alongside of a socket and directly manipulate its `struct ioinfo`. * This is of course a very dirty hack. If we could design the API today we - * could use `CancellIoEx`. But we are older than that Win32 API. + * could use `CancelIoEx`. But we are older than that Win32 API. */ static inline int rb_fd_select(int n, rb_fdset_t *rfds, rb_fdset_t *wfds, rb_fdset_t *efds, struct timeval *timeout) diff --git a/include/ruby/internal/symbol.h b/include/ruby/internal/symbol.h index 7371d32408..9b863d090e 100644 --- a/include/ruby/internal/symbol.h +++ b/include/ruby/internal/symbol.h @@ -203,7 +203,7 @@ VALUE rb_id2str(ID id); /** * Obtain a frozen string representation of a symbol (not including the leading - * colon). Done without any object allcoations. + * colon). Done without any object allocations. * * @param[in] symbol A ::rb_cSymbol instance to query. * @return A frozen instance of ::rb_cString with the name of `symbol`.