多行注释导致意外的 tIDENTIFIER
Multi-line comments leads to unexpected tIDENTIFIER
我正在尝试添加一些 >>> DocStrings
。这是我的一段代码:
def service_destroy(service)
=begin
service_check(service) retun 0 || 1
1 if service up and running
0 otherwise
=end
...
根据documentation and other questions,它必须被忽略,但我有一个语法错误:
syntax error, unexpected '='
=begin
^
多行注释的开始和结束必须放在一行的开头。
我正在尝试添加一些 >>> DocStrings
。这是我的一段代码:
def service_destroy(service)
=begin
service_check(service) retun 0 || 1
1 if service up and running
0 otherwise
=end
...
根据documentation and other questions,它必须被忽略,但我有一个语法错误:
syntax error, unexpected '='
=begin
^
多行注释的开始和结束必须放在一行的开头。