Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
13b55253
Commit
13b55253
authored
Oct 20, 2015
by
Seba Gamboa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obvious warnings from docs
parent
f0e99742
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
84 additions
and
86 deletions
+84
-86
mrbgems/mruby-array-ext/src/array.c
mrbgems/mruby-array-ext/src/array.c
+2
-2
mrbgems/mruby-enum-ext/mrblib/enum.rb
mrbgems/mruby-enum-ext/mrblib/enum.rb
+10
-12
mrbgems/mruby-enumerator/mrblib/enumerator.rb
mrbgems/mruby-enumerator/mrblib/enumerator.rb
+17
-17
mrbgems/mruby-hash-ext/mrblib/hash.rb
mrbgems/mruby-hash-ext/mrblib/hash.rb
+7
-7
mrbgems/mruby-kernel-ext/src/kernel.c
mrbgems/mruby-kernel-ext/src/kernel.c
+4
-4
mrbgems/mruby-math/src/math.c
mrbgems/mruby-math/src/math.c
+3
-2
mrblib/enum.rb
mrblib/enum.rb
+9
-10
mrblib/hash.rb
mrblib/hash.rb
+2
-2
src/hash.c
src/hash.c
+30
-30
No files found.
mrbgems/mruby-array-ext/src/array.c
View file @
13b55253
mrbgems/mruby-enum-ext/mrblib/enum.rb
View file @
13b55253
...
...
@@ -96,13 +96,12 @@ module Enumerable
end
##
# call-seq:
# enum.each_cons(n) {...} -> nil
#
# Iterates the given block for each array of consecutive <n>
# elements.
#
# e.g.:
# @return [nil]
#
# @example
# (1..10).each_cons(3) {|a| p a}
# # outputs below
# [1, 2, 3]
...
...
@@ -130,12 +129,11 @@ module Enumerable
end
##
# call-seq:
# enum.each_slice(n) {...} -> nil
#
# Iterates the given block for each slice of <n> elements.
#
# e.g.:
# @return [nil]
#
# @example
# (1..10).each_slice(3) {|a| p a}
# # outputs below
# [1, 2, 3]
...
...
mrbgems/mruby-enumerator/mrblib/enumerator.rb
View file @
13b55253
mrbgems/mruby-hash-ext/mrblib/hash.rb
View file @
13b55253
...
...
@@ -13,7 +13,7 @@ class Hash
#
# Creates a new hash populated with the given objects.
#
# Similar to the literal
<code>{ _key_ => _value_, ... }</code>
. In the first
# Similar to the literal
`{ _key_ => _value_, ... }`
. In the first
# form, keys and values occur in pairs, so there must be an even number of
# arguments.
#
...
...
mrbgems/mruby-kernel-ext/src/kernel.c
View file @
13b55253
mrbgems/mruby-math/src/math.c
View file @
13b55253
...
...
@@ -236,7 +236,8 @@ math_tan(mrb_state *mrb, mrb_value obj)
* call-seq:
* Math.asin(x) -> float
*
* Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
* Computes the arc sine of <i>x</i>.
* @return computed value between `-(PI/2)` and `(PI/2)`.
*/
static
mrb_value
math_asin
(
mrb_state
*
mrb
,
mrb_value
obj
)
...
...
@@ -276,7 +277,7 @@ math_acos(mrb_state *mrb, mrb_value obj)
* call-seq:
* Math.atan(x) -> float
*
* Computes the arc tangent of <i>x</i>. Returns
-{PI/2} .. {PI/2}
.
* Computes the arc tangent of <i>x</i>. Returns
`-(PI/2) .. (PI/2)`
.
*/
static
mrb_value
math_atan
(
mrb_state
*
mrb
,
mrb_value
obj
)
...
...
mrblib/enum.rb
View file @
13b55253
##
# Enumerable
#
# ISO 15.3.2
#
# The <code>Enumerable</code> mixin provides collection classes with
# several traversal and searching methods, and with the ability to
#
sort. The class must provide a method <code>each</code>
, which
#
sort. The class must provide a method `each`
, which
# yields successive members of the collection. If
#
<code>Enumerable#max</code>, <code>#min</code>
, or
#
<code>#sort</code>
is used, the objects in the collection must also
#
implement a meaningful <code><=></code>
operator, as these methods
#
{Enumerable#max}, {#min}
, or
#
{#sort}
is used, the objects in the collection must also
#
implement a meaningful `<=>`
operator, as these methods
# rely on an ordering between members of the collection.
#
# @ISO 15.3.2
module
Enumerable
##
...
...
mrblib/hash.rb
View file @
13b55253
src/hash.c
View file @
13b55253
...
...
@@ -580,7 +580,7 @@ mrb_hash_shift(mrb_state *mrb, mrb_value hash)
* call-seq:
* hsh.clear -> hsh
*
* Removes all key-value pairs from
<i>hsh</i>
.
* Removes all key-value pairs from
`hsh`
.
*
* h = { "a" => 100, "b" => 200 } #=> {"a"=>100, "b"=>200}
* h.clear #=> {}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment