Skip to content

Commit 482e4a9

Browse files
authored
docs: update example
Signed-off-by: Athan <kgryte@gmail.com>
1 parent dfb3f62 commit 482e4a9

File tree

1 file changed

+4
-5
lines changed
  • lib/node_modules/@stdlib/_tools/github/create-repo/lib

1 file changed

+4
-5
lines changed

lib/node_modules/@stdlib/_tools/github/create-repo/lib/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @module @stdlib/_tools/github/create-repo
2525
*
2626
* @example
27-
* ```text
2827
* var createRepo = require( '@stdlib/_tools/github/create-repo' );
2928
*
3029
* var opts = {
@@ -41,12 +40,12 @@
4140
* console.error( 'Reset: %s', (new Date( info.reset*1000 )).toISOString() );
4241
* }
4342
* if ( error ) {
44-
* throw new Error( error.message );
43+
* console.error( error.message );
44+
* } else {
45+
* console.log( JSON.stringify( repo ) );
46+
* // returns <repo_data>
4547
* }
46-
* console.log( JSON.stringify( repo ) );
47-
* // returns <repo_data>
4848
* }
49-
* ```
5049
*/
5150

5251
// MODULES //

0 commit comments

Comments
 (0)