Skip to content

Commit f1a5574

Browse files
committed
Fix docstr sample code
1 parent 7ec8d02 commit f1a5574

File tree

2 files changed

+5
-4
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/featureFlags/unleash
  • packages/browser/src/integrations/featureFlags/unleash

2 files changed

+5
-4
lines changed

dev-packages/browser-integration-tests/suites/integrations/featureFlags/unleash/init.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ Sentry.init({
2121
sampleRate: 1.0,
2222
integrations: [window.sentryUnleashIntegration],
2323
});
24-
25-

packages/browser/src/integrations/featureFlags/unleash/integration.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ import type { IVariant, UnleashClient, UnleashClientClass } from './types';
2121
* integrations: [unleashIntegration],
2222
* });
2323
*
24-
* const unleashClient = new UnleashClient(...);
25-
* unleashClient.isEnabled('my-feature');
24+
* const unleash = new UnleashClient(...);
25+
* unleash.start();
26+
*
27+
* unleash.isEnabled('my-feature');
28+
* unleash.getVariant('other-feature');
2629
* Sentry.captureException(new Error('something went wrong'));
2730
* ```
2831
*/

0 commit comments

Comments
 (0)