Skip to content

Commit b62e7d4

Browse files
authored
fix: doc typo for Schema.name_by_field_id() (#1321)
## Which issue does this PR close? - N/A ## What changes are included in this PR? This PR is to fix a typo in function `Schema.name_by_field_id()` doc string. ## Are these changes tested? Yes
1 parent 7646a65 commit b62e7d4

File tree

1 file changed

+1
-1
lines changed
  • crates/iceberg/src/spec/schema

1 file changed

+1
-1
lines changed

crates/iceberg/src/spec/schema/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl Schema {
381381
self.name_to_id.get(name).copied()
382382
}
383383

384-
/// Get field id by full name.
384+
/// Get full name by field id.
385385
pub fn name_by_field_id(&self, field_id: i32) -> Option<&str> {
386386
self.id_to_name.get(&field_id).map(String::as_str)
387387
}

0 commit comments

Comments
 (0)