Skip to content

Commit

Permalink
Merge pull request #17 from RauliL/global-word-proto
Browse files Browse the repository at this point in the history
Rename word `prototype` to `proto`
  • Loading branch information
RauliL authored Aug 20, 2017
2 parents 4ac9dab + f28eee2 commit f156ccb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Prints top-most value of the stack to stdout with terminating new line.

---

### prototype
### proto

<dl>
<dt>Takes:</dt>
Expand All @@ -459,8 +459,8 @@ Prints top-most value of the stack to stdout with terminating new line.
<dd>any, object</dd>
</dl>

Retrieves prototype of the top-most value. If the top-most value of the
stack is null, null will be returned instead.
Retrieves proto of the top-most value. If the top-most value of the stack
is null, null will be returned instead.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/plorth-repl.js

Large diffs are not rendered by default.

Binary file modified docs/plorth-repl.wasm
Binary file not shown.
10 changes: 5 additions & 5 deletions src/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ namespace plorth
}

/**
* Word: prototype
* Word: proto
*
* Takes:
* - any
Expand All @@ -584,10 +584,10 @@ namespace plorth
* - any
* - object
*
* Retrieves prototype of the top-most value. If the top-most value of the
* stack is null, null will be returned instead.
* Retrieves proto of the top-most value. If the top-most value of the stack
* is null, null will be returned instead.
*/
static void w_prototype(const ref<context>& ctx)
static void w_proto(const ref<context>& ctx)
{
ref<class value> value;

Expand Down Expand Up @@ -1206,7 +1206,7 @@ namespace plorth
{ "quote?", w_is_quote },
{ "string?", w_is_string },
{ "typeof" , w_typeof },
{ "prototype", w_prototype },
{ "proto", w_proto },

// Conversions.
{ ">boolean", w_to_boolean },
Expand Down

0 comments on commit f156ccb

Please sign in to comment.