summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorJohn Bampton <jbampton@users.noreply.github.com>2023-03-01 04:05:30 +1000
committerGitHub <noreply@github.com>2023-02-28 10:05:30 -0800
commitc43fbe4ebd2b519601f0b90ca98fa096799d3846 (patch)
tree08b54264b5fa5ef737c429b10969877239803eeb /struct.c
parent966adfb79982436e552a7a65b8124b0a579e40c3 (diff)
downloadruby-c43fbe4ebd2b519601f0b90ca98fa096799d3846.tar.gz
Fix spelling (#7405)
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 86f98dde5a..14fe100412 100644
--- a/struct.c
+++ b/struct.c
@@ -1751,7 +1751,7 @@ rb_data_s_def(int argc, VALUE *argv, VALUE klass)
* Measure.new(amount: 1, unit: 'km')
* #=> #<data Measure amount=1, unit="km">
*
- * # Alternative shorter intialization with []
+ * # Alternative shorter initialization with []
* Measure[1, 'km']
* #=> #<data Measure amount=1, unit="km">
* Measure[amount: 1, unit: 'km']