Skip to content

Commit 894467f

Browse files
committed
docs: Clarify parameters
1 parent a37b9cf commit 894467f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/file/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ where
6767
impl File<FileSourceFile, FileFormat> {
6868
/// Given the basename of a file, will attempt to locate a file by setting its
6969
/// extension to a registered format.
70-
pub fn with_name(name: &str) -> Self {
70+
pub fn with_name(base_name: &str) -> Self {
7171
Self {
7272
format: None,
7373
required: true,
74-
source: FileSourceFile::new(name.into()),
74+
source: FileSourceFile::new(base_name.into()),
7575
}
7676
}
7777
}

0 commit comments

Comments
 (0)