Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Bergman authored and Matthew Bergman committed May 15, 2010
1 parent 9770d9b commit f6de7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ sys.puts(JSON.stringify(Faker.Address.secondaryAddress()));
sys.puts(JSON.stringify(Faker.Address.city()));
sys.puts(JSON.stringify(Faker.Address.streetName()));
sys.puts(JSON.stringify(Faker.Address.streetAddress()));
sys.puts(JSON.stringify(Faker.Address.street_address(true)));
sys.puts(JSON.stringify(Faker.Address.streetAddress(true)));


6 changes: 3 additions & 3 deletions lib/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ exports.streetAddress = function(i) {
switch(Helper.randomNumber(2))
{
case 0:
address = Helper.numerify("#####") + " " + this.street_name();
address = Helper.numerify("#####") + " " + this.streetName();
break;
case 1:
address = Helper.numerify("####") + " " + this.street_name();
address = Helper.numerify("####") + " " + this.streetName();
break;
case 2:
address = Helper.numerify("###") + " " + this.street_name();
address = Helper.numerify("###") + " " + this.streetName();
break;
}
var full_address = i ? address + " " + this.secondaryAddress() : address;
Expand Down

0 comments on commit f6de7e5

Please sign in to comment.