be consistent with comments
This commit is contained in:
parent
47d16bffd0
commit
a22638f421
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue