Fix: Typo in comment (#544)

* Fix: Typo in comment

Added missing word 'to'.

* Update comment in final-example

---------

Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
This commit is contained in:
Max
2024-01-08 20:36:50 +08:00
committed by GitHub
parent e75f71499f
commit 646898bc52
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ import { formatCurrency } from './utils';
import { unstable_noStore as noStore } from 'next/cache';
export async function fetchRevenue() {
// Add noStore() here prevent the response from being cached.
// Add noStore() here to prevent the response from being cached.
// This is equivalent to in fetch(..., {cache: 'no-store'}).
noStore();
try {

View File

@@ -11,7 +11,7 @@ import {
import { formatCurrency } from './utils';
export async function fetchRevenue() {
// Add noStore() here prevent the response from being cached.
// Add noStore() here to prevent the response from being cached.
// This is equivalent to in fetch(..., {cache: 'no-store'}).
try {