Skip to content

Commit

Permalink
add return attribute to index structs
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jun 25, 2020
1 parent 120f3cd commit d78c780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongodb/vibe/db/mongo/impl/index.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct IndexModel
Returns: this IndexModel instance (caller)
*/
ref IndexModel add(string field, int direction)
ref IndexModel add(string field, int direction) return
@safe {
// bson objects keep order
keys[field] = Bson(direction);
Expand All @@ -61,7 +61,7 @@ struct IndexModel
Returns: this IndexModel instance (caller)
*/
ref IndexModel add(string field, string type)
ref IndexModel add(string field, string type) return
@safe {
// bson objects keep order
keys[field] = Bson(type);
Expand All @@ -73,7 +73,7 @@ struct IndexModel
Returns: this IndexModel instance (caller)
*/
ref IndexModel withOptions(IndexOptions options)
ref IndexModel withOptions(IndexOptions options) return
@safe {
this.options = options;
return this;
Expand Down

0 comments on commit d78c780

Please sign in to comment.