diff options
| author | ST-DDT <[email protected]> | 2022-08-13 12:33:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-13 10:33:11 +0000 |
| commit | eb9c5c2c04934a20e801850a73b4ee2b41101f7c (patch) | |
| tree | d556a50be1c8621c42c5caae4e2cd4abaae0028c /src/modules | |
| parent | 5265823615699458e0d870b8ece5b684336f3b23 (diff) | |
| download | faker-eb9c5c2c04934a20e801850a73b4ee2b41101f7c.tar.xz faker-eb9c5c2c04934a20e801850a73b4ee2b41101f7c.zip | |
docs: fix typo in fake examples (#1268)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/fake/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/helpers/index.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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 |
