Several MemoryExtensions.LastIndexOfAnyExcept overloads incorrectly document "first occurrence"
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- csharp
- Área
- documentation
Línea de trabajo
Abre la documentación XML de las sobrecargas enumeradas de MemoryExtensions.LastIndexOfAnyExcept<T> en System.MemoryExtensions y busca la frase “first occurrence”; comprueba si las sobrecargas cercanas contienen la misma redacción copiada. Cambia el texto de returns afectado por “last occurrence” y confirma después la redacción corregida en todas las sobrecargas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
The XML documentation for several MemoryExtensions.LastIndexOfAnyExcept<T> overloads contains contradictory wording.
The method summaries correctly state that the methods search for the last index. However, their <returns> sections incorrectly say that the returned index is the index of the first occurrence:
The index in the span of the first occurrence of any value other than those in <paramref name="values"/>.
first occurrence should be changed to last occurrence.
Affected APIs
LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
There may be additional overloads containing the same copied wording.
Reproduction Steps
- Open
System.MemoryExtensionsin thedotnet/runtimerepository. - Locate the XML documentation for the following overloads:
LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
- Inspect the
<returns>documentation.
Expected behavior
The <returns> documentation should state that the method returns the index of the last occurrence of a value.
Actual behavior
The <returns> documentation incorrectly states that the method returns the index of the first occurrence of a value.
Regression?
No known regression. This appears to be an existing XML documentation error.
Known Workarounds
No response
Configuration
Not configuration-specific. This issue affects the XML documentation in System.MemoryExtensions.
Other information
No response
- Lenguaje dominante
- C#
- Estrellas
- 18.4k
- Forks
- 5.7k
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 657
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/runtime
-
[mono] Native memory leak on the first invoke of every open-instance delegate to a virtual methodAbiertoarea-VM-meta-mono untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dotnet/runtime#136284 · 6 reacciones ·
Los mantenedores suelen responder en 1 día
-
area-System.Runtime untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
dotnet/runtime#136281 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area-System.IO.Compression untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dotnet/runtime#136215 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-CodeGen-coreclr untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
dotnet/runtime#135849 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[wasm] Emscripten clang wrapper fails when the SDK path contains a spacePosiblemente ocupada @agocke la tomó hace 14 días. Abiertoarch-wasm area-Infrastructure untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dotnet/runtime#135416 · 2 comentarios · 2 reacciones · 2 asignados ·
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/runtime
Issues similares
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenPosiblemente ocupada @kou la tomó hoy. AbiertoType: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/arrow-adbc#4947 ·
Los mantenedores suelen responder en 1 día
-
:watch: Not Triaged CAC
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dotnet/AspNetCore.Docs#38001 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Nimblesite/SharpLsp#468 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
elastic/ecs-dotnet#575 ·
-
V4 alert-rule reads have no scope gate, so any authenticated credential can list alert rulesAbiertoalerts bug effort:S P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nightscout/nocturne#2511 ·
Los mantenedores suelen responder en 1 día