Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
treeform committed May 11, 2023
1 parent 2ffbbea commit f5e5394
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/puppy.nim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ proc fetch*(req: Request): Response {.raises: [PuppyError].} =
if req.timeout == 0:
req.timeout = 60

return platform.fetch(req)
return internalFetch(req)

proc newRequest*(
url: string,
Expand Down
2 changes: 1 addition & 1 deletion src/puppy/platforms/linux/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type StringWrap = object
## some sort of wrapper to be passed to C.
str: string

proc fetch*(req: Request): Response {.raises: [PuppyError].} =
proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
result = Response()

{.push stackTrace: off.}
Expand Down
2 changes: 1 addition & 1 deletion src/puppy/platforms/macos/platform.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import macdefs, objc, puppy/common, std/strutils

proc fetch*(req: Request): Response {.raises: [PuppyError].} =
proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
result = Response()

autoreleasepool:
Expand Down
2 changes: 1 addition & 1 deletion src/puppy/platforms/win32/platform.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import puppy/common, std/strutils, utils, windefs, zippy

proc fetch*(req: Request): Response {.raises: [PuppyError].} =
proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
result = Response()

var hSession, hConnect, hRequest: HINTERNET
Expand Down

0 comments on commit f5e5394

Please sign in to comment.