about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-07 01:18:03 +0200
committerGitHub <noreply@github.com>2020-09-07 01:18:03 +0200
commite735247289a07c39a6269e6f53e8a85dc8d59271 (patch)
treefc440c81ea239fdd74b16631e44738f2baf59b9b
parent8ff13f4fd268dbd3cd7dd6d0b9680114df03f70c (diff)
parent8f11127d893bb46228c2ce5bb1753e28a6dc4a47 (diff)
downloadrust-e735247289a07c39a6269e6f53e8a85dc8d59271.tar.gz
rust-e735247289a07c39a6269e6f53e8a85dc8d59271.zip
Rollup merge of #76312 - numbermaniac:patch-1, r=shepmaster
time.rs: Make spelling of "Darwin" consistent

On line 89 of this file, the OS name is written as "Darwin", but on line 162 it is written in all-caps. Darwin is usually spelt as a standard proper noun, i.e. "Darwin", rather than in all-caps.

This change makes that form consistent in both places.
-rw-r--r--library/std/src/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs
index 73c0a7b403a..575882eb459 100644
--- a/library/std/src/time.rs
+++ b/library/std/src/time.rs
@@ -159,7 +159,7 @@ pub struct Instant(time::Instant);
 /// | CloudABI  | [clock_time_get (Realtime Clock)]                                    |
 /// | SGX       | [`insecure_time` usercall]. More information on [timekeeping in SGX] |
 /// | UNIX      | [clock_gettime (Realtime Clock)]                                     |
-/// | DARWIN    | [gettimeofday]                                                       |
+/// | Darwin    | [gettimeofday]                                                       |
 /// | VXWorks   | [clock_gettime (Realtime Clock)]                                     |
 /// | WASI      | [__wasi_clock_time_get (Realtime Clock)]                             |
 /// | Windows   | [GetSystemTimePreciseAsFileTime] / [GetSystemTimeAsFileTime]         |