Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

fixed multiple typos in the code example as well as typo in explanation ... #522

Merged
merged 1 commit into from
Sep 18, 2012

Conversation

dmitris
Copy link
Contributor

@dmitris dmitris commented Sep 18, 2012

The code in the third code example of http://developer.yahoo.com/cocktails/mojito/docs/code_exs/route_config.html has three bugs/typos which prevent it from being parsed as valid JSON. I added missing commas and quotes so that you could copy and paste the code. Also fixed the sentence: "you could would use the following to call it"

@dmitris
Copy link
Contributor Author

dmitris commented Sep 18, 2012

Here is the code example in question:

[
  {
    "settings": ["master"],
    "custom-route": {
      "verbs": ["get"],
      "path": "/custom-route",
      "call": "mapped_mojit.index"
    }  // missing comma 
    "another-route": {
      "verbs": ["post"]  // missing comma
      "path": "/*",
      "call": mojit-post-route.post_params"  // missing the starting quote
    }
  }
]

@ghost ghost assigned zhouyaoji Sep 18, 2012
@rwaldura
Copy link
Contributor

Thanks @dmitris !
@zhouyaoji will fix

zhouyaoji pushed a commit that referenced this pull request Sep 18, 2012
fixed multiple typos in the code example as well as typo in explanation.
@zhouyaoji zhouyaoji merged commit 379ee73 into YahooArchive:develop Sep 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants