From 689a89c18c0e02bbd7159fdf4c363fd260150522 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 21 Aug 2020 14:48:12 +0100 Subject: [PATCH] documentation comment --- src/tile.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tile.rs b/src/tile.rs index e3066ad..c2ee574 100644 --- a/src/tile.rs +++ b/src/tile.rs @@ -5,7 +5,9 @@ use crate::image::animation_frames_from_string; pub struct Tile { pub id: String, pub name: Option, - pub wall: Option, // this is "optional" in that a tile can have `WAL true|false` or neither + /// this is "optional" in that a tile can have `WAL true`, `WAL false` or neither + /// obviously Some(false) is the same as None but we want to preserve the original formatting + pub wall: Option, pub animation_frames: Vec, pub colour_id: Option, }