docs: fix `teh` typo

master
Delyan Angelov 2022-05-06 09:10:42 +03:00
parent f956acd2f6
commit 7f974a275a
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ pub fn stbi_write_tga(path string, w int, h int, comp int, buf &u8) ? {
} }
// stbi_write_png write on path a JPG file // stbi_write_png write on path a JPG file
// quality select teh compression quality of the JPG // quality select the compression quality of the JPG
// quality is between 1 and 100. Higher quality looks better but results in a bigger image. // quality is between 1 and 100. Higher quality looks better but results in a bigger image.
pub fn stbi_write_jpg(path string, w int, h int, comp int, buf &u8, quality int) ? { pub fn stbi_write_jpg(path string, w int, h int, comp int, buf &u8, quality int) ? {
if 0 == C.stbi_write_jpg(&char(path.str), w, h, comp, buf, quality) { if 0 == C.stbi_write_jpg(&char(path.str), w, h, comp, buf, quality) {

View File

@ -223,7 +223,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
p.tok.pos()) p.tok.pos())
} }
'_fastcall' { '_fastcall' {
p.note_with_pos('teh tag [_fastcall] has been deprecated, it will be an error after 2022-06-01, use `[callconv: fastcall]` instead', p.note_with_pos('the tag [_fastcall] has been deprecated, it will be an error after 2022-06-01, use `[callconv: fastcall]` instead',
p.tok.pos()) p.tok.pos())
} }
'callconv' { 'callconv' {