Skip to content

Commit 212b623

Browse files
committed
docs: rename function alias
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e1ca191 commit 212b623

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/net/http-server/docs

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/net/http-server/docs/repl.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,24 @@
3737
Examples
3838
--------
3939
// Basic usage:
40-
> var httpServer = {{alias}}()
40+
> var boot = {{alias}}()
4141
<Function>
4242

4343
// Provide a request callback:
4444
> function onRequest( request, response ) {
4545
... console.log( request.url );
4646
... response.end( 'OK' );
4747
... };
48-
> httpServer = {{alias}}( onRequest )
48+
> boot = {{alias}}( onRequest )
4949
<Function>
5050

5151
// Specify a specific port:
5252
> var opts = { 'port': 7331 };
53-
> httpServer = {{alias}}( opts )
53+
> boot = {{alias}}( opts )
5454
<Function>
5555

5656

57-
httpServer( done )
57+
boot( done )
5858
Creates an HTTP server.
5959

6060
Parameters
@@ -71,8 +71,8 @@ httpServer( done )
7171
... console.log( 'Success!' );
7272
... server.close();
7373
... };
74-
> var httpServer = {{alias}}();
75-
> httpServer( done );
74+
> var boot = {{alias}}();
75+
> boot( done );
7676

7777
See Also
7878
--------

0 commit comments

Comments
 (0)