Skip to content

Commit

Permalink
Minor correction in feature.add examples in contributing.md (#6270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambujsahu81 committed Feb 1, 2023
1 parent 1d14916 commit 467e5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The simplest usage of `feature.add` is the following. This will be run instantly

```ts
import * as pageDetect from 'github-url-detection';
import features from '.';
import features from '../feature-manager';

function init(): void {
console.log('');
Expand All @@ -42,7 +42,7 @@ import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import delegate, {DelegateEvent} from 'delegate-it';

import features from '.';
import features from '../feature-manager';

function append(event: DelegateEvent<MouseEvent, HTMLButtonElement>): void {
event.delegateTarget.after('', <div className="rgh-jsx-element">Button clicked!</div>);
Expand Down

0 comments on commit 467e5f3

Please sign in to comment.