Skip to content

Commit

Permalink
Some doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 12, 2013
1 parent 761c1d5 commit 7625eb0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions opal/core/runtime.js
Expand Up @@ -776,10 +776,12 @@
return hash;
};

// hash2 is a faster creator for hashes that just use symbols and
// strings as keys. The map and keys array can be constructed at
// compile time, so they are just added here by the constructor
// function
/*
* hash2 is a faster creator for hashes that just use symbols and
* strings as keys. The map and keys array can be constructed at
* compile time, so they are just added here by the constructor
* function
*/
Opal.hash2 = function(keys, map) {
var hash = new Opal.Hash._alloc;

Expand All @@ -789,6 +791,10 @@
return hash;
};

/*
* Create a new range instance with first and last values, and whether the
* range excludes the last value.
*/
Opal.range = function(first, last, exc) {
var range = new Opal.Range._alloc;
range.begin = first;
Expand Down

0 comments on commit 7625eb0

Please sign in to comment.