gpt4 book ai didi

comments - Crystal 多行注释

转载 作者:行者123 更新时间:2023-12-04 02:01:51 25 4
gpt4 key购买 nike

Crystal 中是否有任何多行注释?例如 Ruby 所做的:

=begin
this is a
multiline
comment in Ruby
=end

这只会在 Crystal 中给我一个错误:
unexpected token: =

最佳答案

Crystal 没有多行注释。只需在要注释的行块前面加上 #单行注释。您的编辑器应该能够为您执行此操作。

关于comments - Crystal 多行注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46614892/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com