[wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift
soranoba opened this issue · comments
Hinagiku Soranoba commented
New Issue Checklist
- I have tried with the latest version of OHHTTPStubs
- I have read the README
- I have read the Using the right Swift Version of
OHHTTPStubs
for your project section - I have searched in the existing issues
- I have read the OHHTTPStubs wiki to see if there wasn't a detailed page talking about my issue
Environment
- version of OHHTTPStubs: 9.0.0
- integration method you are using:
- Cocoapods
- Carthage
- submodule
- other
- version of the tool you use: [INSERT VERSION HERE]
Issue Description
It seems that some wiki contents are incorrect.
https://github.com/AliSoftware/OHHTTPStubs/wiki/Usage-Examples
// wrong
OHHTTPStubsResponse(data: stubData!, statusCode:200, headers:nil)
// correct
HTTPStubsResponse(data: stubData!, statusCode:200, headers:nil)
Complete output when you encounter the issue (if any)
plasmabal commented
I noticed the error, too. Too bad cannot edit the wiki and send a PR. It should be a quick and easy fix.
Jiakan Wang commented
+1, the issue is still here and confusing for new users. Would be nice if we can edit the wikis
Max Howell commented
The curse of open source. Wasted half an hour on this.
Mikaela Caron commented
+1 very confusing for new users!