From 2d3d7a74e91ac521bbcedcc350f6b6877b61faa3 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Wed, 29 Jan 2025 21:53:00 +0900 Subject: [PATCH] [DOC] Fix wrong call-seq format (#12662) --- file.c | 1 - thread.c | 8 ++++---- time.c | 3 --- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/file.c b/file.c index 2c603ecd4d..d110d9f7ee 100644 --- a/file.c +++ b/file.c @@ -5679,7 +5679,6 @@ rb_stat_s_alloc(VALUE klass) /* * call-seq: - * * File::Stat.new(file_name) -> stat * * Create a File::Stat object for the given file name (raising an diff --git a/thread.c b/thread.c index d5da3e3856..7674eff572 100644 --- a/thread.c +++ b/thread.c @@ -884,10 +884,10 @@ thread_create_core(VALUE thval, struct thread_create_params *params) #define threadptr_initialized(th) ((th)->invoke_type != thread_invoke_type_none) /* - * call-seq: - * Thread.new { ... } -> thread - * Thread.new(*args, &proc) -> thread - * Thread.new(*args) { |args| ... } -> thread + * call-seq: + * Thread.new { ... } -> thread + * Thread.new(*args, &proc) -> thread + * Thread.new(*args) { |args| ... } -> thread * * Creates a new thread executing the given block. * diff --git a/time.c b/time.c index 34a90977ab..deb44096af 100644 --- a/time.c +++ b/time.c @@ -5700,7 +5700,6 @@ time_load(VALUE klass, VALUE str) /* * call-seq: - * * Time::tm.from_time(t) -> tm * * Creates new Time::tm object from a Time object. @@ -5731,7 +5730,6 @@ tm_from_time(VALUE klass, VALUE time) /* * call-seq: - * * Time::tm.new(year, month=nil, day=nil, hour=nil, min=nil, sec=nil, zone=nil) -> tm * * Creates new Time::tm object. @@ -5755,7 +5753,6 @@ tm_initialize(int argc, VALUE *argv, VALUE time) } /* call-seq: - * * tm.to_time -> time * * Returns a new Time object.