Skip to content

Commit

Permalink
Update documentation for each_* aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Weibull committed Apr 9, 2013
1 parent 21cd9e6 commit d32f5ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ext/u/rb_u_string.c
Expand Up @@ -261,8 +261,9 @@ rb_u_string_dup(VALUE self)
* Beyond interrogators there are quite a few methods for iterating over the
* content of a U::String, each viewing it in its own way: {#each_byte},
* {#each_char}, {#each_codepoint}, {#each_grapheme_cluster}, {#each_line}, and
* {#each_word}. They all have aliases ({#bytes}, {#chars}, {#codepoints},
* {#grapheme_clusters}, {#lines}, {#words}) that sometimes read better.
* {#each_word}. They all have respective methods ({#bytes}, {#chars},
* {#codepoints}, {#grapheme_clusters}, {#lines}, {#words}) that return an
* Array instead of yielding each result.
*
* Quite a few methods are devoted to extracting a substring of a U::String,
* namely {#[]}, {#slice}, {#byteslice}, {#chomp}, {#chop}, {#chr}, {#getbyte},
Expand Down
2 changes: 1 addition & 1 deletion ext/u/rb_u_string_each_codepoint.c
Expand Up @@ -35,7 +35,7 @@ rb_u_string_each_codepoint(VALUE self)
return self;
}

/* @return [Array<U::String>] The code points of the receiver. */
/* @return [Array<Integer>] The code points of the receiver. */
VALUE
rb_u_string_codepoints(VALUE self)
{
Expand Down

0 comments on commit d32f5ad

Please sign in to comment.