在shell脚本中,注释的另一个极其有帮助的用途是,解释变量的有效值以及解释返回码的含义。
Another extremely helpful use for comments in shell scripts is to explain what variables may be as well as explaining return codes.
注释还可以动态地提取HTTP请求中的信息,以及把应用程序生成的异常映射到http响应码。
Annotations can also dynamically extract information from HTTP requests and map application-generated exceptions to HTTP response codes.
向清单8的代码行中添加一些注释和一个专门描述返回码的注释块,这样就可以显著降低理解难度。
Adding a few comments to the lines in Listing 8 and adding a section on which return codes are used and their descriptions cuts down on confusion immensely.
先给出xml,随后提供每个分别列出的程序码行的注释。
The XML is given first, followed by the annotations for each individually listed line of code.
先给出xml,随后提供每个分别列出的程序码行的注释。
The XML is given first, followed by the annotations for each individually listed line of code.
应用推荐