be consistent with comments

This commit is contained in:
Adam Babik 2017-11-23 13:51:52 +01:00
parent 47d16bffd0
commit a22638f421
3 changed files with 3 additions and 3 deletions

View File

@ -299,7 +299,7 @@ type JailManager interface {
// Parse creates a new jail cell context, with the given chatID as identifier.
// New context executes provided JavaScript code, right after the initialization.
// DEPRECATED
// DEPRECATED in favour of CreateAndInitCell.
Parse(chatID, js string) string
// CreateAndInitCell creates a new jail cell and initialize it

View File

@ -163,7 +163,7 @@ func (j *Jail) CreateAndInitCell(chatID string, code ...string) string {
// Parse creates a new jail cell context, with the given chatID as identifier.
// New context executes provided JavaScript code, right after the initialization.
// DEPRECATED
// DEPRECATED in favour of CreateAndInitCell.
func (j *Jail) Parse(chatID, code string) string {
cell, err := j.cell(chatID)
if err != nil {

View File

@ -324,7 +324,7 @@ func InitJail(js *C.char) {
}
//Parse creates a new jail cell context and executes provided JavaScript code.
//DEPRECATED in favour of CreateAndInitCell and ExecuteJS.
//DEPRECATED in favour of CreateAndInitCell.
//export Parse
func Parse(chatID *C.char, js *C.char) *C.char {
res := statusAPI.JailParse(C.GoString(chatID), C.GoString(js))