Skip to content

Commit 3c0337f

Browse files
committed
BlockAlign could have the wrong value Before instead of Begin
1 parent b3f2eae commit 3c0337f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl LayoutAttributes<'_> {
407407
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
408408
pub enum BlockAlign {
409409
/// At the start of the block advance direction.
410-
Begin,
410+
Before,
411411
/// Centered.
412412
Middle,
413413
/// At the end of the block advance direction.
@@ -419,7 +419,7 @@ pub enum BlockAlign {
419419
impl BlockAlign {
420420
pub(crate) fn to_name(self) -> Name<'static> {
421421
match self {
422-
Self::Begin => Name(b"Begin"),
422+
Self::Before => Name(b"Before"),
423423
Self::Middle => Name(b"Middle"),
424424
Self::After => Name(b"After"),
425425
Self::Justify => Name(b"Justify"),

0 commit comments

Comments
 (0)