Skip to content

Commit

Permalink
Fix typos in media support
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Petiot <[email protected]>
  • Loading branch information
panglesd and gpetiot authored Dec 4, 2023
1 parent 76071aa commit 14a8c2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/model_desc/paths_desc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module General_paths = struct
| `TType -> C0 "`TType"
| `TUnknown -> C0 "`TUnknown"
| `TValue -> C0 "`TValue"
| `TAsset -> C0 "`TValue"
| `TAsset -> C0 "`TAsset"
| `TChildPage -> C0 "`TChildPage"
| `TChildModule -> C0 "`TChildModule")

Expand Down
14 changes: 7 additions & 7 deletions src/parser/token.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let print : [< t ] -> string = function
| `Simple_media (`Reference _, `Image) -> "{image!...}"
| `Simple_media (`Reference _, `Audio) -> "{audio!...}"
| `Simple_media (`Reference _, `Video) -> "{video!...}"
| `Simple_media (`Link _, `Image) -> "{image!...}"
| `Simple_media (`Link _, `Image) -> "{image:...}"
| `Simple_media (`Link _, `Audio) -> "{audio:...}"
| `Simple_media (`Link _, `Video) -> "{video:...}"
| `Begin_media_with_replacement_text (`Reference _, `Image) ->
Expand Down Expand Up @@ -180,21 +180,21 @@ let describe : [< t | `Comment ] -> string = function
| `Simple_media (`Reference _, `Image) -> "'{image!...}' (image-reference)"
| `Simple_media (`Reference _, `Audio) -> "'{audio!...}' (audio-reference)"
| `Simple_media (`Reference _, `Video) -> "'{video!...}' (video-reference)"
| `Simple_media (`Link _, `Image) -> "'{image!...}' (image-link)"
| `Simple_media (`Link _, `Audio) -> "'{audio:...}' (audio-reference)"
| `Simple_media (`Link _, `Video) -> "'{video:...}' (video-reference)"
| `Simple_media (`Link _, `Image) -> "'{image:...}' (image-link)"
| `Simple_media (`Link _, `Audio) -> "'{audio:...}' (audio-link)"
| `Simple_media (`Link _, `Video) -> "'{video:...}' (video-link)"
| `Begin_media_with_replacement_text (`Reference _, `Image) ->
"'{{image!...} ...}' (image-reference)"
| `Begin_media_with_replacement_text (`Reference _, `Audio) ->
"'{{audio!...} ...}' (audio-reference)"
| `Begin_media_with_replacement_text (`Reference _, `Video) ->
"'{{video!...} ...}' (video-reference)"
| `Begin_media_with_replacement_text (`Link _, `Image) ->
"'{{image:...} ...}' (image-reference)"
"'{{image:...} ...}' (image-link)"
| `Begin_media_with_replacement_text (`Link _, `Audio) ->
"'{{audio:...} ...}' (audio-reference)"
"'{{audio:...} ...}' (audio-link)"
| `Begin_media_with_replacement_text (`Link _, `Video) ->
"'{{video:...} ...}' (video-reference)"
"'{{video:...} ...}' (video-link)"
| `Simple_link _ -> "'{:...} (external link)'"
| `Begin_link_with_replacement_text _ -> "'{{:...} ...}' (external link)"
| `End -> "end of text"
Expand Down

0 comments on commit 14a8c2f

Please sign in to comment.