mirror of
https://github.com/ziglang/zig.git
synced 2025-02-05 20:30:37 +00:00
Document top-level doc comments, per #2288.
This commit is contained in:
parent
fabdef44a8
commit
bc900cdeaf
@ -392,6 +392,18 @@ const Timestamp = struct {
|
||||
in the middle of an expression, or just before a non-doc comment.
|
||||
</p>
|
||||
{#header_close#}
|
||||
{#header_open|Top-Level Doc Comments#}
|
||||
<p>User documentation that doesn't belong to whatever
|
||||
immediately follows it, like package-level documentation, goes
|
||||
in top-level doc comments. A top-level doc comment is one that
|
||||
begins with two slashes and an exclamation point:
|
||||
{#syntax#}//!{#endsyntax#}.</p>
|
||||
{#code_begin|syntax|tldoc_comments#}
|
||||
//! This module provides functions for retrieving the current date and
|
||||
//! time with varying degrees of precision and accuracy. It does not
|
||||
//! depend on libc, but will use functions from it if available.
|
||||
{#code_end#}
|
||||
{#header_close#}
|
||||
{#header_close#}
|
||||
{#header_open|Values#}
|
||||
{#code_begin|exe|values#}
|
||||
|
Loading…
Reference in New Issue
Block a user