mikespook / Learning-Go-zh-cn

一本学习 Go 语言的免费电子书。
http://mikespook.com/learning-go/
Other
2.65k stars 545 forks source link

How to use |\longremark{ } | #12

Open daochuanli opened 10 years ago

daochuanli commented 10 years ago

vim vimLearning-Go-zh-cn/ex-basics/src/fizzbuzz.go, then I found: const ( FIZZ = 3 |\longremark{为了提高代码的可读性,定义两个常量。% 参阅``\titleref{sec:constants}'';}| BUZZ = 5 ) And how to use |\longremark{ }| ?

mikespook commented 10 years ago

The explanation of longremark is here: https://github.com/mikespook/Learning-Go-zh-cn/blob/master/go-basics.tex#L19. Even though, the L19 don't use longremark in the line, the appearance will be same.