mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 22:02:51 +01:00
Remove excess use of auto on initializers (auto x = Y(z) -> Y x(z)) (#4239)
This commit is contained in:
@@ -243,7 +243,7 @@ auto SourceGen::GenerateRandomIdentifier(
|
||||
llvm::ArrayRef<char> start_chars = IdentifierStartChars();
|
||||
llvm::ArrayRef<char> chars = IdentifierChars();
|
||||
|
||||
auto ident = llvm::StringRef(dest_storage.data(), dest_storage.size());
|
||||
llvm::StringRef ident(dest_storage.data(), dest_storage.size());
|
||||
do {
|
||||
dest_storage[0] =
|
||||
start_chars[absl::Uniform<int>(rng_, 0, start_chars.size())];
|
||||
|
||||
Reference in New Issue
Block a user