Skip to content

Commit

Permalink
Update dissect/util/feature.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Schamper <[email protected]>
  • Loading branch information
cecinestpasunepipe and Schamper authored Nov 16, 2023
1 parent 498bbe7 commit 5416c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dissect/util/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def feature(flag: Feature, alternative: Optional[Callable] = feature_disabled_st
@feature(Feature.SOME_FLAG, fallback)
def my_func( ... ) -> ...
Where SOME_FLAG is the feature you want to check for and
altfunc is the alternative function to serve
Where ``SOME_FLAG`` is the feature you want to check for and ``fallback`` is the alternative function to serve
if the feature flag is NOT set.
"""

Expand Down

0 comments on commit 5416c98

Please sign in to comment.