Correct a spelling error 'diagnostic' (#5878)

This commit is contained in:
Qiaojin.Bao 2024-11-13 02:13:48 +08:00 committed by GitHub
parent df94b2db4a
commit 707da36c70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,7 +201,7 @@ spv_result_t spvTextEncodeOperand(const spvtools::AssemblyGrammar& grammar,
}
// Optional literal operands can fail to parse. In that case use
// SPV_FAILED_MATCH to avoid emitting a diagostic. Use the following
// SPV_FAILED_MATCH to avoid emitting a diagnostic. Use the following
// for those situations.
spv_result_t error_code_for_literals =
spvOperandIsOptional(type) ? SPV_FAILED_MATCH : SPV_ERROR_INVALID_TEXT;