Skip to content

Commit 767939f

Browse files
authored
docs: fix feature flags guide
1 parent 81de8ed commit 767939f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/website/docs/guide/09-feature-flags/01-feature-flags.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const showRedColorInsteadOfBlue = flag({
3737

3838
## Using Feature Flags
3939

40-
Once you have defined a feature flag, you can use it in your code to control the visibility of features. You can use the `isEnabled` method to check if a feature flag is enabled or not.
40+
Once you have defined a feature flag, you can use it in your code to control the visibility of features. You can use the function returned by the `flag` function to check if a feature flag is enabled or not.
4141

4242
```ts title="src/commands/hello.ts"
4343
import { ChatInputCommand, CommandData } from 'commandkit';

0 commit comments

Comments
 (0)