mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 22:04:09 +02:00
Merge pull request #1509 from EinScott/corlib-fix
make console write take stringview consistently
This commit is contained in:
commit
731d8591d2
1 changed files with 3 additions and 3 deletions
|
@ -212,12 +212,12 @@ namespace System
|
||||||
|
|
||||||
public static Result<void> ReadToEnd(String outText) => In.ReadToEnd(outText);
|
public static Result<void> ReadToEnd(String outText) => In.ReadToEnd(outText);
|
||||||
|
|
||||||
public static void Write(String line)
|
public static void Write(StringView line)
|
||||||
{
|
{
|
||||||
Out.Write(line).IgnoreError();
|
Out.Write(line).IgnoreError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Write(String fmt, params Object[] args)
|
public static void Write(StringView fmt, params Object[] args)
|
||||||
{
|
{
|
||||||
String str = scope String(256);
|
String str = scope String(256);
|
||||||
str.AppendF(fmt, params args);
|
str.AppendF(fmt, params args);
|
||||||
|
@ -239,7 +239,7 @@ namespace System
|
||||||
Out.Write("\n").IgnoreError();
|
Out.Write("\n").IgnoreError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void WriteLine(String line)
|
public static void WriteLine(StringView line)
|
||||||
{
|
{
|
||||||
Out.WriteLine(line).IgnoreError();
|
Out.WriteLine(line).IgnoreError();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue