diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 93997df3fd..468693f078 100644 --- a/ext/socket/ancdata.c +++ b/ext/socket/ancdata.c @@ -60,8 +60,8 @@ ip_cmsg_type_to_sym(int level, int cmsg_type) * * _cmsg_data_ should be a string. * - * p Socket::AncillaryData.new(:INET, :TCP, :NODELAY, "")' - * #=> # + * p Socket::AncillaryData.new(:INET, :TCP, :NODELAY, "") + * #=> # * * p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "") * #=> # @@ -184,7 +184,7 @@ ancillary_data(VALUE self) * The size and endian is dependent on the host. * * p Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, STDERR.fileno) - * #=> # + * #=> # */ static VALUE ancillary_s_int(VALUE klass, VALUE vfamily, VALUE vlevel, VALUE vtype, VALUE integer) @@ -580,8 +580,8 @@ anc_inspect_ipv6_pktinfo(int level, int type, VALUE data, VALUE ret) * * returns a string which shows ancillarydata in human-readable form. * - * Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").inspect - * #=> # + * p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").inspect + * #=> "#" */ static VALUE ancillary_inspect(VALUE self) diff --git a/ext/socket/option.c b/ext/socket/option.c index f0f5806276..eeb292dc76 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -127,7 +127,7 @@ sockopt_data(VALUE self) * The size and endian is dependent on the host. * * p Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1) - * #=> # + * #=> # */ static VALUE sockopt_s_int(VALUE klass, VALUE vfamily, VALUE vlevel, VALUE voptname, VALUE vint)