about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-13 23:33:18 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-13 23:33:49 +0200
commit4145bb7097ad748ded0a58fc502141a9c4e433eb (patch)
tree82c0dd0f04a0086e3858c6a734e4c6741f91b46c
parentf0b013e7904c8f9dac50c6340617508fa3d52177 (diff)
downloadchawan-4145bb7097ad748ded0a58fc502141a9c4e433eb.tar.gz
fix comment
-rw-r--r--src/layout/box.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim
index 22bed3a5..28dc951c 100644
--- a/src/layout/box.nim
+++ b/src/layout/box.nim
@@ -19,7 +19,7 @@ type
   # max-content: box width is content width without wrapping
   # stretch: box width is n px wide
   # fit-content: also known as shrink-to-fit, box width is
-  #   min(max-content, max(stretch)
+  #   min(max-content, stretch(availableWidth))
   #   in other words, as wide as needed, but wrap if wider than allowed
   # (note: I write width here, but it can apply for any constraint)
   SizeConstraintType* = enum