Skip to content

Commit

Permalink
fix: fix typos in documentation (t3-oss#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
madmaxieee committed Jan 4, 2024
1 parent 07878ed commit 25afaf4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions www/src/pages/ar/usage/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(user);
} catch (cause) {
if (cause instanceof TRPCError) {
// An error from tRPC occured
// An error from tRPC occurred
const httpCode = getHTTPStatusCodeFromError(cause);
return res.status(httpCode).json(cause);
}
// Another error occured
// Another error occurred
console.error(cause);
res.status(500).json({ message: "Internal server error" });
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/en/usage/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(user);
} catch (cause) {
if (cause instanceof TRPCError) {
// An error from tRPC occured
// An error from tRPC occurred
const httpCode = getHTTPStatusCodeFromError(cause);
return res.status(httpCode).json(cause);
}
// Another error occured
// Another error occurred
console.error(cause);
res.status(500).json({ message: "Internal server error" });
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/fr/usage/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(user);
} catch (cause) {
if (cause instanceof TRPCError) {
// An error from tRPC occured
// An error from tRPC occurred
const httpCode = getHTTPStatusCodeFromError(cause);
return res.status(httpCode).json(cause);
}
// Another error occured
// Another error occurred
console.error(cause);
res.status(500).json({ message: "Internal server error" });
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/ja/usage/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(user);
} catch (cause) {
if (cause instanceof TRPCError) {
// An error from tRPC occured
// An error from tRPC occurred
const httpCode = getHTTPStatusCodeFromError(cause);
return res.status(httpCode).json(cause);
}
// Another error occured
// Another error occurred
console.error(cause);
res.status(500).json({ message: "Internal server error" });
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/ru/usage/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ const userByIdHandler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(user);
} catch (cause) {
if (cause instanceof TRPCError) {
// An error from tRPC occured
// An error from tRPC occurred
const httpCode = getHTTPStatusCodeFromError(cause);
return res.status(httpCode).json(cause);
}
// Another error occured
// Another error occurred
console.error(cause);
res.status(500).json({ message: "Internal server error" });
}
Expand Down

0 comments on commit 25afaf4

Please sign in to comment.