mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#clear
This commit is contained in:
parent
6c77a0c62b
commit
b146eae3b5
1 changed files with 4 additions and 2 deletions
6
string.c
6
string.c
|
@ -6666,9 +6666,11 @@ rb_str_replace(VALUE str, VALUE str2)
|
|||
*
|
||||
* Removes the contents of +self+:
|
||||
*
|
||||
* s = 'foo' # => "foo"
|
||||
* s.clear # => ""
|
||||
* s = 'foo'
|
||||
* s.clear # => ""
|
||||
* s # => ""
|
||||
*
|
||||
* Related: see {Modifying}[rdoc-ref:String@Modifying].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue