Skip to content

Commit 9cca594

Browse files
chore: clean up on docs
1 parent 17f1aee commit 9cca594

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/node_modules/@stdlib/dstructs/fifo/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@
101101
> q.push( 1 ).push( 2 ).push( 3 );
102102
> q.every( function( v ) { return v > 0; } )
103103
true
104-
> q.every( function( v ) { return v > 2; } )
104+
> q.every( function( v ) { return v % 1 === 0; } )
105105
false
106-
> q.every( function( v ) { return v % 2 === 0; } )
106+
> q.every( function( v ) { return v > 2; } )
107107
false
108108

109109

lib/node_modules/@stdlib/dstructs/fifo/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ declare class FIFO<T = unknown> {
393393
*
394394
* @example
395395
* var FIFO = require( '@stdlib/dstructs/fifo' );
396-
*
396+
*
397397
* var queue = new FIFO();
398398
*
399399
* // Add values to the queue:

lib/node_modules/@stdlib/dstructs/fifo/examples/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ queue.push( 'bar' );
2929
queue.push( 'beep' );
3030
queue.push( 'boop' );
3131

32-
// Inspect accessor-protocol implementation:
33-
queue.set( 'bop', 3 );
34-
v = queue.get( 3 );
35-
console.log( 'Value: %s', v );
36-
3732
// Peek at the first and last queue values:
3833
var v = queue.first();
3934
console.log( 'First: %s', v );
4035

4136
v = queue.last();
4237
console.log( 'Last: %s', v );
4338

39+
// Inspect accessor-protocol implementation:
40+
queue.set( 'bop', 3 );
41+
v = queue.get( 3 );
42+
console.log( 'Value: %s', v );
43+
4444
// Inspect the queue length:
4545
var len = queue.length;
4646
console.log( 'Queue length: %d', len );

0 commit comments

Comments
 (0)