Skip to content

Commit

Permalink
fix(mbuild): scope -> add_scope
Browse files Browse the repository at this point in the history
This is not only more precisely saying what it does, but also doesn't
clash with scope parameters on resources ;) (happened in dfareporting)
  • Loading branch information
Byron committed Mar 11, 2015
1 parent 5b5ad43 commit 538120f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mako/lib/mbuild.mako
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ${self._setter_fn(resource, method, m, p, part_prop, ThisType, c)}\
/// Usually there is more than one suitable scope to authorize an operation, some of which may
/// encompass more rights than others. For example, for listing resources, a *read-only* scope will be
/// sufficient, a read-write scope will do as well.
pub fn scope<T>(mut self, scope: T) -> ${ThisType}
pub fn add_scope<T>(mut self, scope: T) -> ${ThisType}
where T: Str {
self.${api.properties.scopes}.insert(scope.as_slice().to_string(), ());
self
Expand Down

0 comments on commit 538120f

Please sign in to comment.