Skip to content

Commit

Permalink
change private comments too
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Oct 18, 2022
1 parent f7c09e6 commit 8f8b480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/collection.ts
Expand Up @@ -288,7 +288,7 @@ export class Collection<TSchema extends Document = Document> {
options = {};
}

// CSFLE passes in { w: 'majority' } to ensure the lib works in both 3.x and 4.x
// In use encryption passes in { w: 'majority' } to ensure the lib works in both 3.x and 4.x
// we support that option style here only
if (options && Reflect.get(options, 'w')) {
options.writeConcern = WriteConcern.fromOptions(Reflect.get(options, 'w'));
Expand Down
4 changes: 2 additions & 2 deletions src/error.ts
Expand Up @@ -111,7 +111,7 @@ export interface ErrorDescription extends Document {
* @category Error
*
* @privateRemarks
* CSFLE has a dependency on this error, it uses the constructor with a string argument
* In use encryption has a dependency on this error, it uses the constructor with a string argument
*/
export class MongoError extends Error {
/** @internal */
Expand Down Expand Up @@ -568,7 +568,7 @@ export class MongoNetworkError extends MongoError {
* @category Error
*
* @privateRemarks
* CSFLE has a dependency on this error with an instanceof check
* In use encryption has a dependency on this error with an instanceof check
*/
export class MongoNetworkTimeoutError extends MongoNetworkError {
constructor(message: string, options?: MongoNetworkErrorOptions) {
Expand Down
2 changes: 1 addition & 1 deletion src/sdam/topology.ts
Expand Up @@ -252,7 +252,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
) => this.selectServer(selector, options, callback as any)
);

// Legacy CSFLE support
// Legacy in use encryption support
this.bson = Object.create(null);
this.bson.serialize = serialize;
this.bson.deserialize = deserialize;
Expand Down

0 comments on commit 8f8b480

Please sign in to comment.