Mat*_*tte 6 comments crystal-lang
Crystal 中有多行注释吗?就像 Ruby 所做的那样:
=begin
this is a
multiline
comment in Ruby
=end
Run Code Online (Sandbox Code Playgroud)
这只会在 Crystal 中给我一个错误:
unexpected token: =
Crystal 没有多行注释。只需在要注释掉的行块前面加上#单行注释即可。您的编辑应该能够为您做到这一点。