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

Fix typos in Set documentation #81

Merged
merged 1 commit into from
Sep 21, 2017
Merged
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
Fix typos in Set documentation
  • Loading branch information
chriseppstein authored Sep 19, 2017
commit 8ff92be50569b5a0f217034c5a6d8994b5f89b5d
8 changes: 4 additions & 4 deletions src/lib/Set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class Set<T> {
* @constructor
* @param {function(Object):string=} toStringFunction optional function used
* to convert elements to strings. If the elements aren't strings or if toString()
* is not appropriate, a custom function which receives a onject and returns a
* is not appropriate, a custom function which receives an object and returns a
* unique string must be provided.
*/
constructor(toStringFunction?: (item: T) => string) {
Expand Down Expand Up @@ -56,7 +56,7 @@ export default class Set<T> {
}

/**
* Performs an intersecion between this an another set.
* Performs an intersecion between this and another set.
* Removes all values that are not present this set and the given set.
* @param {collections.Set} otherSet other set.
*/
Expand All @@ -71,7 +71,7 @@ export default class Set<T> {
}

/**
* Performs a union between this an another set.
* Performs a union between this and another set.
* Adds all values from the given set to this set.
* @param {collections.Set} otherSet other set.
*/
Expand All @@ -84,7 +84,7 @@ export default class Set<T> {
}

/**
* Performs a difference between this an another set.
* Performs a difference between this and another set.
* Removes from this set all the values that are present in the given set.
* @param {collections.Set} otherSet other set.
*/
Expand Down