summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorKouhei Yanagita <yanagi@shakenbu.org>2022-12-28 21:51:33 +0900
committerVictor Shepelev <zverok.offline@gmail.com>2022-12-28 18:43:05 +0200
commitcada537040743cbe49aac6740816d648ca0d3fb6 (patch)
tree6965d89991abeaeaaf91784e41b1e936dfcef8b6 /struct.c
parentb726d60c986bf951d13e7a2ab5f5e58f58657b03 (diff)
downloadruby-cada537040743cbe49aac6740816d648ca0d3fb6.tar.gz
[DOC] Fix call-seq for Data.define
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/struct.c b/struct.c
index 38c780dcda..f68c496728 100644
--- a/struct.c
+++ b/struct.c
@@ -1662,11 +1662,9 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * define(name, *symbols) -> class
* define(*symbols) -> class
*
- * Defines a new \Data class. If the first argument is a string, the class
- * is stored in <tt>Data::<name></tt> constant.
+ * Defines a new \Data class.
*
* measure = Data.define(:amount, :unit)
* #=> #<Class:0x00007f70c6868498>