What is the purpose of using square brackets in Java code comment?

前端 未结 3 1529
春和景丽
春和景丽 2021-01-21 08:27

I saw some Java code by Google using square bracket in comment.
For example:

// [START initialize_auth]
mAuth = FirebaseAuth.getInstance();
// [END initializ         


        
3条回答
  •  梦谈多话
    2021-01-21 09:05

    Everyone has their own comment style, but in regards to your question specifically it could be a way to organize large codebases or search through code faster.

提交回复
热议问题