mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
types: fix dangling doc reference
This commit is contained in:
parent
decb5c67a6
commit
2530a557a9
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ impl SectionBlockCoords {
|
||||||
/// Computes a block's offset in various data structures
|
/// Computes a block's offset in various data structures
|
||||||
///
|
///
|
||||||
/// Many chunk data structures store block and biome data in the same
|
/// Many chunk data structures store block and biome data in the same
|
||||||
/// order. [BlockCoords::offset] computes the offset at which the data
|
/// order. This method computes the offset at which the data for the
|
||||||
/// for the block at a given coordinate is stored.
|
/// block at a given coordinate is stored.
|
||||||
pub fn offset(&self) -> usize {
|
pub fn offset(&self) -> usize {
|
||||||
use BLOCKS_PER_CHUNK as N;
|
use BLOCKS_PER_CHUNK as N;
|
||||||
let x = self.xz.x.0 as usize;
|
let x = self.xz.x.0 as usize;
|
||||||
|
|
Loading…
Add table
Reference in a new issue