fix(es/ast): Update EsVersion::latest() (#3261)

This commit is contained in:
mrauhu 2022-01-14 02:33:38 +03:00 committed by GitHub
parent 15b604b6d6
commit 69978518c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,10 +118,10 @@ pub enum EsVersion {
}
impl EsVersion {
/// Get the latest version. This is `es2021` for now, but it will be changed
/// Get the latest version. This is `es2022` for now, but it will be changed
/// if a new version of specification is released.
pub const fn latest() -> Self {
EsVersion::Es2021
EsVersion::Es2022
}
}