Skip to content

Commit

Permalink
doc: Document the documentation config entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan authored and emilio committed Feb 1, 2021
1 parent d0d287f commit d3cd22b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ line_length = 80
# default: 2
tab_width = 3

# Include doc comments from Rust as documentation
documentation = true

# How the generated documentation should be commented.
#
# possible values:
Expand Down
2 changes: 1 addition & 1 deletion src/bindgen/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ pub struct Config {
pub constant: ConstantConfig,
/// Preprocessor defines to use when generating #ifdef's for #[cfg]
pub defines: HashMap<String, String>,
/// Include doc comments from rust as documentation
/// Include doc comments from Rust as documentation
pub documentation: bool,
/// How documentation comments should be styled.
pub documentation_style: DocumentationStyle,
Expand Down
1 change: 1 addition & 0 deletions template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ after_includes = ""
braces = "SameLine"
line_length = 100
tab_width = 2
documentation = true
documentation_style = "auto"
line_endings = "LF" # also "CR", "CRLF", "Native"

Expand Down

0 comments on commit d3cd22b

Please sign in to comment.