diff --git a/packages/next/client/link.tsx b/packages/next/client/link.tsx index 98856261e77c..379d21123e15 100644 --- a/packages/next/client/link.tsx +++ b/packages/next/client/link.tsx @@ -233,7 +233,7 @@ function Link(props: React.PropsWithChildren) { } catch (err) { if (!children) { throw new Error( - `No children were pass to with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children` + `No children were passed to with \`href\` of \`${props.href}\` but one child is required https://nextjs.org/docs/messages/link-no-children` ) } throw new Error( diff --git a/test/integration/client-navigation/test/index.test.js b/test/integration/client-navigation/test/index.test.js index 92c5fbc66b22..b0fc4128bf95 100644 --- a/test/integration/client-navigation/test/index.test.js +++ b/test/integration/client-navigation/test/index.test.js @@ -64,7 +64,7 @@ describe('Client Navigation', () => { const browser = await webdriver(context.appPort, '/link-no-child') expect(await hasRedbox(browser, true)).toBe(true) expect(await getRedboxHeader(browser)).toContain( - 'No children were pass to with `href` of `/about` but one child is required' + 'No children were passed to with `href` of `/about` but one child is required' ) })