diff --git a/include/nuttx/tls.h b/include/nuttx/tls.h index 7eb05acbb5..ba7a0c9e87 100644 --- a/include/nuttx/tls.h +++ b/include/nuttx/tls.h @@ -34,6 +34,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifdef CONFIG_TLS_ALIGNED @@ -99,10 +100,10 @@ struct tls_info_s * elem - Index of TLS element to return * * Returned Value: - * The value of TLS element associated with 'elem'. Errors are not reported. - * Aero is returned in the event of an error, but zero may also be valid - * value and returned when there is no error. The only possible error would - * be if elemn < 0 or elem >=CONFIG_TLS_NELEM. + * The value of TLS element associated with 'elem'. Errors are not + * reported. Zero is returned in the event of an error, but zero may also + * be valid value and returned when there is no error. The only possible + * error would be if elem < 0 or elem >=CONFIG_TLS_NELEM. * ****************************************************************************/ diff --git a/libs/libc/tls/tls_getelem.c b/libs/libc/tls/tls_getelem.c index 724d7fee35..cfa7cd62b4 100644 --- a/libs/libc/tls/tls_getelem.c +++ b/libs/libc/tls/tls_getelem.c @@ -47,10 +47,10 @@ * elem - Index of TLS element to return * * Returned Value: - * The value of TLS element associated with 'elem'. Errors are not reported. - * Aero is returned in the event of an error, but zero may also be valid - * value and returned when there is no error. The only possible error would - * be if elem >=CONFIG_TLS_NELEM. + * The value of TLS element associated with 'elem'. Errors are not + * reported. Zero is returned in the event of an error, but zero may also + * be valid value and returned when there is no error. The only possible + * error would be if elem < 0 or elem >=CONFIG_TLS_NELEM. * ****************************************************************************/