Skip to content

Commit

Permalink
Fix for Nim 0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Sep 30, 2018
1 parent 0022996 commit d010fd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/translation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ when is_main_module:
of cmdEnd: assert false


# proc async_translation {.async.} = echo await AsyncMMT().tinyslation("white cat", to="es")
#
# wait_for async_translation()
runnableExamples:
import asyncdispatch, httpclient, json, strformat, uri, parseopt, terminal, random
proc async_translation {.async.} = echo await AsyncMMT().tinyslation("white cat", to="es")
wait_for async_translation()
4 changes: 2 additions & 2 deletions translation.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.0"
version = "0.3.0"
author = "Juan Carlos <juancarlospaco@gmail.com>"
description = "Text string translation from free online crowdsourced API. Tinyslation a tiny translation. Sync and Async support (MultiSync). No API Key required."
license = "LGPLv3"
Expand All @@ -9,4 +9,4 @@ bin = @["translation.nim"]

# Dependencies

requires "nim >= 0.18.0"
requires "nim >= 0.19.0"

0 comments on commit d010fd3

Please sign in to comment.