diff options
Diffstat (limited to 'src/html.rs')
-rw-r--r-- | src/html.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs index 2cb8f3c..b76276b 100644 --- a/src/html.rs +++ b/src/html.rs @@ -641,7 +641,8 @@ pub enum Location { } impl Location { - fn new(filename: &Path, line: usize, col: usize) -> Self { + /// Create a new location. + pub fn new(filename: &Path, line: usize, col: usize) -> Self { Self::Known { filename: filename.into(), line, |