reserve keys 0, 1 and 2 for stdio

This commit is contained in:
Léo Gaspard
2021-01-13 04:24:02 +01:00
parent 7303793fa0
commit f3156114c4

View File

@@ -12,7 +12,7 @@ impl Table {
pub fn new() -> Self {
Table {
map: HashMap::new(),
next_key: 0,
next_key: 3, // 0, 1 and 2 are reserved for stdio
}
}