Skip to content

Commit 21c6cd8

Browse files
committed
cli: fix warnings from cargo doc
1 parent b729029 commit 21c6cd8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

cli/config/src/lib.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ use std::{env, fs};
88

99
/// Holds the contents of tree-sitter's configuration file.
1010
///
11-
/// The file typically lives at `~/.config/tree-sitter/config.json`, but see the [`load`][] method
12-
/// for the full details on where it might be located.
11+
/// The file typically lives at `~/.config/tree-sitter/config.json`, but see the [`Config::load`][]
12+
/// method for the full details on where it might be located.
1313
///
1414
/// This type holds the generic JSON content of the configuration file. Individual tree-sitter
15-
/// components will use the [`get`][] method to parse that JSON to extract configuration fields
16-
/// that are specific to that component.
15+
/// components will use the [`Config::get`][] method to parse that JSON to extract configuration
16+
/// fields that are specific to that component.
1717
#[derive(Debug)]
1818
pub struct Config {
1919
pub location: PathBuf,
@@ -72,9 +72,10 @@ impl Config {
7272
Ok(Config { location, config })
7373
}
7474

75-
/// Creates an empty initial configuration file. You can then use the [`add`][] method to add
76-
/// the component-specific configuration types for any components that want to add content to
77-
/// the default file, and then use [`save`][] to write the configuration to disk.
75+
/// Creates an empty initial configuration file. You can then use the [`Config::add`][] method
76+
/// to add the component-specific configuration types for any components that want to add
77+
/// content to the default file, and then use [`Config::save`][] to write the configuration to
78+
/// disk.
7879
///
7980
/// (Note that this is typically only done by the `tree-sitter init-config` command.)
8081
pub fn initial() -> Result<Config> {

0 commit comments

Comments
 (0)