From eb9c5c2c04934a20e801850a73b4ee2b41101f7c Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 13 Aug 2022 12:33:11 +0200 Subject: docs: fix typo in fake examples (#1268) --- src/modules/fake/index.ts | 2 +- src/modules/helpers/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/fake/index.ts b/src/modules/fake/index.ts index a60acd5b..64d3bab2 100644 --- a/src/modules/fake/index.ts +++ b/src/modules/fake/index.ts @@ -57,7 +57,7 @@ export class Fake { * faker.fake('This is static test.') // 'This is static test.' * faker.fake('Good Morning {{name.firstName}}!') // 'Good Morning Estelle!' * faker.fake('You can call me at {{phone.number(!## ### #####!)}}.') // 'You can call me at 202 555 973722.' - * faker.fake('I flipped the coin an got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin an got: tails' + * faker.fake('I flipped the coin and got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin and got: tails' * * @deprecated Use faker.helpers.fake() instead. */ diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index b4d73b2e..6f94fe63 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -495,7 +495,7 @@ export class Helpers { * faker.helpers.fake('This is static test.') // 'This is static test.' * faker.helpers.fake('Good Morning {{name.firstName}}!') // 'Good Morning Estelle!' * faker.helpers.fake('You can call me at {{phone.number(!## ### #####!)}}.') // 'You can call me at 202 555 973722.' - * faker.helpers.fake('I flipped the coin an got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin an got: tails' + * faker.helpers.fake('I flipped the coin and got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin and got: tails' */ fake(str: string): string { // if incoming str parameter is not provided, return error message -- cgit v1.2.3