Skip to content

Commit

Permalink
Fix ArraySegument argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed Jan 16, 2025
1 parent 157b034 commit ee8e530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Packages/MinimalUtility/Runtime/DataBind/BindElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public bool Equals(BindElement? other)
public virtual void Bind(float value) => throw new InvalidOperationException("Type of float is specified, check that this is correct.");
public virtual void Bind(int value) => throw new InvalidOperationException("Type of int is specified, check that this is correct.");
public virtual void Bind(char[] value) => throw new InvalidOperationException("Type of char[] is specified, check that this is correct.");
public virtual void Bind(ArraySegment<char> value) => throw new InvalidOperationException("Type of ArraySegment<char> is specified, check that this is correct.");
public virtual void Bind(in ArraySegment<char> value) => throw new InvalidOperationException("Type of ArraySegment<char> is specified, check that this is correct.");
public virtual void Bind(string value) => throw new InvalidOperationException("Type of string is specified, check that this is correct.");
public virtual void Bind(Texture value) => throw new InvalidOperationException("Type of Texture is specified, check that this is correct.");
public virtual void Bind(Sprite value) => throw new InvalidOperationException("Type of Sprite is specified, check that this is correct.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public override void Bind(char[] value)
_target!.SetCharArray(value);
}

public override void Bind(ArraySegment<char> value)
public override void Bind(in ArraySegment<char> value)
{
ThrowIfNull(_target);
_target!.SetCharArray(value.Array, value.Offset, value.Count);
Expand Down

0 comments on commit ee8e530

Please sign in to comment.