Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jan 25, 2020
1 parent c1f368a commit ab69724
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare namespace random {
// Troll: Nine nine nine nine nine nine
function dilibertOracle(): number;
function dilbertOracle(): number;
// chosen by fair dice roll. guaranteed to be random.
function fairDiceRoll(): number;
}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const fairDiceRoll = require('./algorithms/fair-dice-roll')
const dilibertOracle = require('./algorithms/dilbert-oracle')
module.exports = Object.assign(fairDiceRoll, { fairDiceRoll, dilibertOracle })
const dilbertOracle = require('./algorithms/dilbert-oracle')
module.exports = Object.assign(fairDiceRoll, { fairDiceRoll, dilbertOracle })
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This module has some important advantages over other modules:
## Supported algorithms

- [Fair Dice Roll](https://www.xkcd.com/221/)
- [Dilibert Oracle](https://dilbert.com/strip/2001-10-25)
- [Dilbert Oracle](https://dilbert.com/strip/2001-10-25)

## Installation

Expand All @@ -31,7 +31,7 @@ npm i --save @rschmidmeister/random.js
## Usage

```js
const { fairDiceRoll, dilibertOracle } = require('@rschmidmeister/random.js')
const { fairDiceRoll, dilbertOracle } = require('@rschmidmeister/random.js')
console.log(fairDiceRoll())
console.log(dilibertOracle())
console.log(dilbertOracle())
```
6 changes: 3 additions & 3 deletions test/dilbert-oracle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict'

const assert = require('assert')
const { dilibertOracle } = require('../index')
const { dilbertOracle } = require('../index')

describe('dilibert oracle', () => {
describe('dilbert oracle', () => {
it('always returns the same number', () => {
assert.equal(9, dilibertOracle())
assert.equal(9, dilbertOracle())
})
})

0 comments on commit ab69724

Please sign in to comment.