Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lunr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3456,7 +3456,7 @@ lunr.QueryParser.parseBoost = function (parser) {
} else if (typeof exports === 'object') {
/**
* Node. Does not work with strict CommonJS, but
* only CommonJS-like enviroments that support module.exports,
* only CommonJS-like environments that support module.exports,
* like Node.
*/
module.exports = factory()
Expand Down
8 changes: 4 additions & 4 deletions test/env/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -7055,7 +7055,7 @@ function alloc (that, size, fill, encoding) {
if (fill !== undefined) {
// Only pay attention to encoding if it's a string. This
// prevents accidentally sending in a number that would
// be interpretted as a start offset.
// be interpreted as a start offset.
return typeof encoding === 'string'
? createBuffer(that, size).fill(fill, encoding)
: createBuffer(that, size).fill(fill)
Expand Down Expand Up @@ -7344,7 +7344,7 @@ function slowToString (encoding, start, end) {
return ''
}

// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
// Force coercion to uint32. This will also coerce falsey/NaN values to 0.
end >>>= 0
start >>>= 0

Expand Down Expand Up @@ -9781,7 +9781,7 @@ exports.version = '1.4.1'
* - sticky Make the notification stick (defaults to false)
* - priority Specify an int or named key (default is 0)
* - name Application name (defaults to growlnotify)
* - sound Sound efect ( in OSx defined in preferences -> sound -> effects) * works only in OSX > 10.8x
* - sound Sound effect ( in OSx defined in preferences -> sound -> effects) * works only in OSX > 10.8x
* - image
* - path to an icon sets --iconpath
* - path to an image sets --image
Expand Down Expand Up @@ -12375,7 +12375,7 @@ process.nextTick = function (fun) {
}
};

// v8 likes predictible objects
// v8 likes predictable objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
Expand Down
2 changes: 1 addition & 1 deletion test/token_set_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ suite('lunr.TokenSet', function () {
// a state reached by a wildcard has
// an edge with a wildcard to itself.
// the resulting automota is
// non-determenistic
// non-deterministic
assert.equal(wild, wild.edges['*'])
assert.isOk(wild.final)
})
Expand Down