Skip to content

Commit 7176571

Browse files
committed
chore: content stylings
1 parent c012c68 commit 7176571

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

apps/site/pages/en/learn/getting-started/fetch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async function streamOllamaCompletion(prompt) {
9898
headers: {
9999
'Content-Type': 'application/json',
100100
},
101-
body: JSON.stringify({ prompt, model: 'mistral' }),
101+
body: JSON.stringify({ prompt: prompt, model: 'mistral' }),
102102
});
103103

104104
// You can read about HTTP status codes here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

apps/site/pages/en/learn/modules/backpressuring-in-streams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ import { Readable } from 'node:stream';
599599
// Create a custom Readable stream
600600
const myReadableStream = new Readable({
601601
objectMode: true,
602-
read(size) {
602+
read: function (size) {
603603
// Push some data onto the stream
604604
this.push({ message: 'Hello, world!' });
605605
this.push(null); // Mark the end of the stream

apps/site/pages/en/learn/modules/how-to-use-streams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ To create a new transform stream, we can pass an `options` object to the `Transf
382382
const { Transform } = require('node:stream');
383383

384384
const upper = new Transform({
385-
transform: function (data, enc, cb) {
385+
transform(data, enc, cb) {
386386
this.push(data.toString().toUpperCase());
387387
cb();
388388
},
@@ -393,7 +393,7 @@ const upper = new Transform({
393393
import { Transform } from 'node:stream';
394394

395395
const upper = new Transform({
396-
transform: function (data, enc, cb) {
396+
transform(data, enc, cb) {
397397
this.push(data.toString().toUpperCase());
398398
cb();
399399
},
@@ -456,7 +456,7 @@ import { Transform } from 'node:stream';
456456

457457
let errorCount = 0;
458458
const upper = new Transform({
459-
transform: function (data, enc, cb) {
459+
transform(data, enc, cb) {
460460
if (errorCount === 10) {
461461
return cb(new Error('BOOM!'));
462462
}
@@ -549,7 +549,7 @@ import { Transform, pipeline } from 'node:stream';
549549

550550
let errorCount = 0;
551551
const upper = new Transform({
552-
transform: function (data, enc, cb) {
552+
transform(data, enc, cb) {
553553
if (errorCount === 10) {
554554
return cb(new Error('BOOM!'));
555555
}
@@ -671,7 +671,7 @@ import { Readable } from 'node:stream';
671671

672672
const readable = Readable({
673673
objectMode: true,
674-
read() {
674+
read: function () {
675675
this.push({ hello: 'world' });
676676
this.push(null);
677677
},

0 commit comments

Comments
 (0)