Skip to content

Commit

Permalink
Fix function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Nov 18, 2023
1 parent c644cf4 commit 1d1ab94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glubs/srt.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ pub type Srt {
Srt(cues: List(Cue))
}

// Cue represents a single cue in a srt file.
/// Cue represents a single cue in a srt file.
pub type Cue {
Cue(id: Int, start_time: Int, end_time: Int, payload: String)
}

// Parses a Srt string and returns a Result containing the parsed Srt structure or a parsing error.
/// Parses a Srt string and returns a Result containing the parsed Srt structure or a parsing error.
pub fn parse(input: String) -> Result(Srt, String) {
input
|> string.replace("\r\n", "\n")
Expand Down

0 comments on commit 1d1ab94

Please sign in to comment.